
ランダムな複数の円
size(400,400); colorMode(HSB,100); background(99); noStroke(); //輪郭線描かない for(int i=0 ; i float color1=random(0,10); //0以上10未満のランダムな値をcolor1に fill(color1,30,99,50);//塗り色の設定 float x=random(width); float y=random(height); float R=random(5,60); // 10以上30未満のランダムな値をRに代入 ellipse(x,y,R,R); }