Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Think Different World Clock widget' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Think Different World Clock widget
Authored by: ekerkhoff on May 18, '05 08:04:16PM
Does anyone have the expertise to develope a Think Different World Clock widget that runs backwards?

Take a look at the link below for an example:
http://www.welovemacs.com/alogowww.html

[ Reply to This | # ]
10.4: Think Different World Clock widget
Authored by: mcswgn on May 23, '05 09:03:49AM
Getting the clock to run backwards is very straight forward. Open WorldClock.js as was described above for adding a city. There are three places where the function "drawHands" appears--the first two when it is being used and the last where it is defined. Change the first two uses by inserting a negative sign in front of each of the angles so it looks like:

drawHands ( - hoursAngle, - minutesAngle, - secondsAngle);
Now the clock runs backwards. The problem is that the clock face is still numbered forward! The tedious part is fixing this. If you are creative, you can completely redo the face to your liking. The two images that draw the clock face (one for day time and one for night) are "base.png" and "pmbase.png" in the images subdirectory. I just used Graphic Converter to flip the entire image horizontally (that put the digits in the right locations but mirror image) and then carefully selected each number and flipped it back again. Add a "Think different" to the face and, viola!, you have your clock. If you want to look at my modified images you can get them here: base.png and pmbase.png. If you don't want to modify the original widgit (a good idea if only to keep your changes from being overwritten if the original gets an update), duplicate the entire World Clock.wdgt, name it "TD World Clock.wdgt", and make the changes inside that. Then you can have both types of clocks at the same time.

[ Reply to This | # ]
10.4: Think Different World Clock widget
Authored by: ekerkhoff on May 25, '05 10:34:00PM

Very cool!!! Thank you so much for the help. I appreciate the images too. Thanks!



[ Reply to This | # ]