Wonderfl clock

On March 14, in his “Clock Quiz” post, Zevan Rosser wrote:

Create some kind of clock with as little code as possible.

In my response I posted standard three handed clock in 20 lines, which I thought was quite short code. Well, not quite. Six guys at wonderfl took Zevan’s call very seriously and made a dozen of forks over last week, squeezing my code character by character down to only 137 characters in “enterFrame” handler atm.

6 Responses to “Wonderfl clock”


  1. 1 Clint March 22, 2010 at 09:37

    Cool a tweetable clock – now when someone asks you the time on twitter, you can send them back a clock.

  2. 2 Kishi March 22, 2010 at 22:06

    That’s pretty cool.
    But some of them are kinda broken.
    For instance, the last one have the wrong hour right now. It was supposed to be 17:04 but it’s actually displaying 16:04.

    • 3 makc3d March 22, 2010 at 23:02

      how do you know, if there is no clockface?

      • 4 Kishi March 22, 2010 at 23:11

        Comparing the pointers’ angle to Windows’s clock ;P

        Actually, it’s pretty visible now that it is 6o’clock.
        Let me grab an screenshot..

        There you go: http://img163.imageshack.us/img163/213/sclock.png

        • 5 makc3d March 23, 2010 at 00:21

          I believe I was responsible for this effect, when I changed *PI/(i%3?30:6) to /(i%3?10:2), in effect rounding PI down to 3. I figured, if they were fine with rounding 465/2 to 232, they would be fine with this too, as long as hands do not jump backwards (which would be the case with /(i%3?9:2) for example – which is why I didn’t use it).

          This also answers half of your other question; 2nd half is that 1.6 ~ PI/2 and 11 ~ 7*PI/2.

  3. 6 Kishi March 22, 2010 at 23:42

    I actually don’t get how using (0..12, 11..23) and (0..6, 11..17) as radian angles to the sin function could generate the correct values.

    Does anybody know if there’s any theory behind those statements? If there isn’t, it’s impressive how convincing the results are, being just a coincidence.


Ask a Question

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Old stuff

March 2010
M T W T F S S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Oh, btw…


%d bloggers like this: