void setup(){
void setup(){
size(300,300);
noStroke(); //線を消す
background(0); //背景黒
}
void draw(){
background(0); //背景白
float n = frameCount * 0.01; //1秒間のフレームの数を緩やかに変える
float s = width/2;
float r = width/2;
translate(width/2,height/2); //座標(0,0)を真ん中に変更
for(int i = 0; i < 1000; i++){
rotate(i); //軸をiの数に変える
scale(1 - 0.01f * (i / 2)); //大きさをバラバラにする
fill(255); //オブジェクトは黒
ellipse(cos(n)*r*30,n,sin(s)*r,s); //位置を変えながら円を描く
}
}