/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.lfAXs$osOVI/rev.504
*
* authors:
* zack marlow
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
float radius = 50;
void setup(){
size(800,600);
}
void draw(){
background(0);
drawCircles(width/2,height/2);
}
void drawCircles(float cx, float cy){
float t = frameCount*.01;
for(int r = radius; r < width/2; r+= radius){
for(int theta = 0; theta < PI*2; theta += PI/8){
float x,y;
x = cx+cos(theta+t)*r;
y = cy+sin(theta+t)*r;
noStroke();
fill(255,0,0);
ellipse(x,y,4,4);
fill(255);
text("(" + (String)((int)x) + " , " + (String)((int)y)+ ")",x,y);
}
}
}