xxxxxxxxxx
//ファイル名:sketch_xxxxxxxxxx.pde
//円を描く
void setup ( ) {
size(500, 500); //キャンバスの大きさ
background(255);//キャンバスの背景色 白
noFill( );//図形の内部を透明にする
}
void draw( ) {
//色のRGBをランダムに作り出す
float r=random(0,255);// 0≦r≦255
float g=random(0,255);// 0≦g≦255
float b=random(0,255);// 0≦b≦255
//座標の位置をランダムに作り出す
float x=random(50,450);// 50≦x≦450
float y=random(50,450);// 50≦y≦450
//円の直径をランダムに作り出す
float d=random(50,400);// 50≦d≦450
//fill(r,g,b);
stroke(r,g,b);
ellipse(x, y, d, d);
//save("st_ellipse_2c.jpg");// 実行結果を画像形式で保存
//noLoop();//繰返し処理を止める
}