int divX = 10; int divY = 10; int colH = 0; int colW = 0; int r = 20; void setup() { size(500, 500); stroke(255); noCursor(); } void draw() { background(0); stroke(255); colW = width/divX; colH = height/divY; for(int x = 1; x < divX; x++) { for(int y = 1; y < divY; y++) { stroke(random(mouseX,mouseY)); noFill(); bezier(x*colW,y*colW,mouseX,mouseY,x*colW,y*colW,x*colW,y*colW); } } }