xxxxxxxxxx
//円を描く
void setup ( ) {
size(500, 500); //キャンバスの大きさ
background(255);//キャンバスの背景色 白
noFill( );//図形の内部を透明にする
frameRate(2);
}
void draw( ) {
background(255);
//色の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
stroke(r,g,b); //ランダムな線の色
ellipse(x, y, 100, 100);//ランダムな位置に円を描く
}