xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
noStroke()
var count=0
for(var x=0;x<width;x+=50){
for(var y=0;y<height;y+=50){
count+=1
strokeWeight(4);
stroke(random(200,255),random(255),random(255))
fill(random(200,255),random(255),random(255))
// if(count%3==0){ //每3倍數才出現 3 6 9 12
// rect(x,y,50)
// }
if(count%5<4){
rect(x,y,40,40,5)
if(random()<0.5){
fill(random(200,255),random(255),random(255))
stroke(0,0,0)
strokeWeight(4);
ellipse(x+20,y+20,20)
}
}
}
}
}
function draw() {
}