processing_example

int x=-30; int y=20;

void setup{ size(500,500); background(0); stroke(140); strokeWeight(5); smooth;

} void draw{ /*x=x+1; y=y+1;*/ x=mouseX; y=mouseY; background(0); for(int i=0; i<30; i++){ diagonals(x+(i*10)-50,y); } /* diagonals(x,y); diagonals(x+10,y); diagonals(x+20,y); diagonals(x+30,y); diagonals(x+40,y); diagonals(x+50,y);*/ /*This is moved down to void diagonals line(x, y, x+55, y+55); line(x+10, y, x+65, y+55); line(x+20, y, x+75, y+55); line(x+30, y, x+85, y+55); line(x+40, y, x+95, y+55); line(x+50, y, x+105, y+55); line(x+60, y, x+115, y+55);*/ }

void diagonals(int x, int y){ line(x, y, x+55, y+55); } /* This is the part that draws lines with actual numbers line(30, 20, 85, 75); line(40, 20, 95, 75); line(50, 20, 105, 75); line(60, 20, 115, 75); line(-10, 20, 45, 75); line(20, 20, 75, 75); line(10, 20, 65, 75); line(00, 20, 55, 75);