xxxxxxxxxx
int eSize = 3;
size(400, 400);
colorMode(RGB, 50, 50, 50);
background(#191970);
smooth();
rectMode(CENTER);
for(int i = 0; i <= height; i+=7){
for(int a = 0; a <= width; a += 7){
rect(i,a, eSize, eSize);
}
} //haikei
for(int y =0; y <= 100; y +=4) {
for(int x= 0; x <= 100; x +=4) {
pushMatrix(); //zahyounohozon
if(x< 50 && y < 50) {
fill(x,0,50);
}
if(x >=50 && y <50){
fill(y,50,0);
}
if(x < 50 && y >=50){
fill(100-y,0,50);
}
if(x >=50 && y>=50) {
fill(100-x,50,0);
} //sikaku
translate(random(width), random(height));
//zahyouwoidou
rotate(random(PI/2));//zahyouwokaiten
scale(random(0.8, 7));//zahyouwokakudai,syukusyou
rect(x,y,eSize,eSize);
popMatrix();//zahyouwotoridasu
}
}