xxxxxxxxxx
size(400,400);
background(10,0,100);
//右下波紋円
colorMode(RGB,365,365,365); //RGBの値
for (int i = 0; i <= 365; i += 20) {
pushMatrix(); //現在の座標
translate(300, 300); //座標移動
rotate(radians(-i));
fill(0, i, i, 30); //波紋の色
ellipse(0, 0, i, i); //円
noStroke();
popMatrix();
}
//右上波紋円
colorMode(RGB,365,365,365); //RGBの値
for (int i = 0; i <=365; i +=25) {
pushMatrix(); //現在の座標
translate(300, 100); //座標移動
rotate(radians(-50));
fill(0, i, i, 10); //波紋の色
ellipse(0, 0, i, i); //円
fill(0,250,0,10); //三角の色
popMatrix();
}
//左上波紋円
colorMode(RGB,365,365,365); //RGBの値
for (int i = 0; i <=365; i += 15) {
pushMatrix(); //現在の座標
translate(100, 100); //座標移動
rotate(radians(-i));
fill(0, i, i, 15); //波紋の色
ellipse(0, 0, i, i); //円
fill(0,250,0,50); //三角の色
popMatrix();
}