//copy and paste into Processing and run it.
//This code is a time process (Clock)
void setup() {
size (200,200) ; }
void draw()
{
rect(mouseX, mouseY, second(), second() );
background(0,0,0);
int s = second(); // Values from 0 - 59
int m = minute(); // Values from 0 - 59
int h = hour(); // Values from 0 - 23
ellipse(s, 60, s, 60);
rect(m, 10, m,60);
rect(h, 60, h, 100);
}
Wednesday, April 2, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment