xxxxxxxxxx
size(400,400); //画面サイズ
background(255); //背景色
colorMode(RGB, 400); //カラーモードでRGBを400に設定
for(int i = 0; i < 400; i += 70){ //おおもとの大きい四角形
fill(i, i, 400);
stroke(i, i, 400);
rect(i, i, 180, 180);
}
for(int i = 0; i < 400; i += 70){ //大きい四角形の右上についている中くらいの四角形
fill(i, i, 400);
stroke(i, i, 400);
rect(160 + i, i, 50, 50);
}
for(int i = 0; i < 400; i += 70){ //大きい四角形の左下についている中くらいの四角形
fill(i, i, 400);
stroke(i, i, 400);
rect(i, 160 + i, 50, 50);
}
for(int i = 0; i < 400; i += 70){ //四角形の左上のくぼませている円
fill(i, i, 400);
stroke(i, i, 400);
ellipse(70 + i, 70 + i, 80, 80);
}
for(int i = 0; i < 400; i += 70){ //中くらいの四角形の右上についている小さい四角形
fill(i, i, 400);
stroke(i, i, 400);
rect(210 + i, i, 30, 30);
}
for(int i = 0; i < 400; i += 70){ //中くらいの四角形の左下についている小さい四角形
fill(i, i, 400);
stroke(i, i, 400);
rect(i, 210 + i, 30, 30);
}