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