It almost works... For the hours part you need to replace [expr $f1 / 24 * 360] with something like
[% 12] | [expr $f1 / 12 * 360]
...after the time object or the hour hand is in the wrong place; you have it for a 24 hour clock. Also the [rotateXYZ 0 0 0 0] should be [rotateXYZ 0 0 0] to avoid error messages.
Martin
Alexandre Quessy wrote:
Hi pd-list,
Just in case it might interested some of you guys, or even for the GEM official examples, I just wrote a PD clock using GEM and Zexy. It is currently available online at http://www.sourcelibre.com/puredata/clock.pd for your pleasure. It uses simple trigonometry calculations with [sin] and [cos]. Thanks !
Alexandre Quessy http://www.sourcelibre.com/
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list