|
size(300,300);
for(int i=0; i<300;i+=20){
for(int j=0; j<300;j+=20){
//texture
//waku
stroke(i,j,255);
fill(i,j,255);
rect(i,j,18,18);
if(i<150){
//naka1
fill(255,0,0);
stroke(255,0,0);
ellipse(5+i,5+j,7,7);
//naka2
fill(250,255,0);
stroke(250,255,0);
rect(5+i,5+j,7,7);
fill(0,255,0);
stroke(0,255,0);
rect(5+i,5+j,4,4);
fill(255,0,0);
stroke(255,0,0);
rect(8+i,8+j,4,4);
fill(255,140,0);
stroke(255,140,0);
rect(9+i,5+j,3,3);
}
if(i>150){
stroke(i,122-j,255);
fill(i,122-j,255);
rect(i,j,18,18);
fill(255,140,0);
stroke(255,140,0);
rect(9+i,5+j,3,3);
fill(36,213,253);
stroke(36,213,253);
ellipse(5+i,5+j,4,4);
fill(255,255,0);
stroke(255,255,0);
ellipse(7+i,7+j,4,4);
}
}
}
|