/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://bard117f12.sketchpad.cc/sp/pad/view/ro.EdWzMnYBOE2/rev.10
*
* authors:
* Aven Helford
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//Aven Helford, 23 October 2012, [email protected], Clock
/*The numbers on this clock change from black to a certain color as time passes. A
circle also grows as time passes. I wanted to make a less ordinary digital clock with
more color and in order to make the colors change, I used "second()" for each set of
numbers' fill. To make the circle grow, I used "second()" for its size measurement.
*/
void setup() {
size(500, 500);
smooth();
}
void draw() {
background(167, 221, 255);
fill(255);
ellipse(250, 250, second()*10, second()*10);
textSize(60);
fill(0, 0, second()*5);
text(hour(), 20, 100);
fill(0, second()*5, 0);
text(minute(), 200, 250);
fill(second()*5, 0, 0);
text(second(), 380, 400);
fill(-second()*5);
text(millis(), mouseX, mouseY);
}