HyperWerk - Processing workshop - January 2004
Day 2: Motion & behavior - slide 03
 


Time

- millis()
- second()
- minute()
- hour()

- How to see how much time has transpired
- How to time events


Exercises

All exercises should be 400x400 pixels.

MV02: Create a visualisation of the time using the second(), minute() and hour() methods. Use some of the ways of generating motion that you've just learned.

Help: To get values in the range of 0..1, do the following:

sec=(float)seconds()/60.0f;
min=(float)minute()/60.0f;
hr=(float)hour()/24.0f;

 
HyperWerk, Basel 2004 - Marius Watz
Back to index - Next slide - Previous slide