xxxxxxxxxx
25
offset=0
function setup() {
createCanvas(600, 400);
}
function draw() {
background(0);
strokeWeight(4);
stroke(255);
// var x=50;
// while(x<width){
// fill(0,200,255);
// ellipse(x,200,25,25);
// x=x+50;
//}
for(var x=0;x<=width; x=x+50){
for(var y=0;y<=width; y=y+50){
fill(random(255),0,random(255));
ellipse(x,y,25,25);
}
}
offset=(offset+1)%width;
}