/**
*
*kyouha yopparatteite kyoumo exsample no copy desu. gomennasai,
*asitaha tyan to ganbarimasu
*/
void setup(){
size(400,400);
noStroke();
smooth();
noLoop();
background(255);
}
void draw(){
drawCircle(170,340,20);
}
void drawCircle(int x, int radius, int level){
float tt = 126 * level/4.0;
fill(random(tt),random(255),random(255));
ellipse(x,200,radius * 2, radius*2);
if(level > 1){
level = level -1;
drawCircle(x - radius/4, radius/2, level);
drawCircle(x + radius, radius/2,level);
}
}
コメント
コメントを投稿