/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117f12.sketchpad.cc/sp/pad/view/ro.Xw8BAdZ7fmr/rev.133
*
* authors:
* Cole Berry-Miller
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
/* Cole Berry-Miller. Oct 22, 2012. The circle fills up once per minute. After
that a new circle is created that also fills up once per minute. At this rate,
and with this sketch size, the sketch can visibly count up to 30 minutes. After
30 minutes the circles go off screen. The lines represent the 15, 30, 45, and
60 second marks.*/
float r = 50;
float theta = radians(270);
int t = 0;
void setup(){
size(800,800);
background(255);
smooth();
}
void draw(){
float xs = r *cos(theta);
float ys = r *sin(theta);
line (0, height/2, width, height/2);
line (width/2, 0, width/2, height);
noFill();
ellipse (width/2, height/2, 75, 75);
noStroke();
fill(0);
ellipse (xs+width/2, ys+height/2, 1, 5);
theta = theta + radians(0.1);
t = t + 1;
if(t == 3600){
r = r + 10;
t = 0;
theta = radians(270);
}
}