Welcome to my Web Portfolio Blog Page

In my blog you will find
my creative ideas, life experiences, articles, projects, coding, photos, videos, links
and much more.

(click here to return to www.rachelwalker.net)

Wednesday, April 2, 2008

Processing #2 post

//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);
}

No comments: