float rotateAngleStep = PI / 32;
float positionRadiousStep = 2;
float circleRadious = 20;
float degreeStep = 10;
void setup(){
size(500, 500);
smooth();
frameRate(24);
noStroke();
fill(0);
}
void draw(){
background(255);
pushMatrix();
translate(width/2, height/2);
rotate(rotateAngleStep * frameCount);
float positionRadious = 10;
for(float degree = 0; degree < 1800; degree += degreeStep){
positionRadious += positionRadiousStep;
float radian = radians(degree);
arc(positionRadious * cos(radian), positionRadious * sin(radian), circleRadious*2, circleRadious*2, 0, PI * 2);
}
popMatrix();
}