copy from the original woerdclock

For animation programming