HOME | DD

Nimphious — Clock by-nc-nd

Published: 2009-05-31 07:18:44 +0000 UTC; Views: 7547; Favourites: 46; Downloads: 1521
Redirect to original
Description UPDATE
Since people were having trouble saving the flash after hitting the download button, I'm including this archive containing the flash in an attempt to eliminate the problem.


This is a flash clock I created to be used as a wallpaper.

If you're on Windows XP, you can use this by adding it to your Active Desktop.

If you're on Windows Vista, you can use DesktopX and follow these instructions .

How to read the clock:

The seconds are represented in two ways; Each passing second is represented by the center dial, which completes one full rotation every two seconds (or aligns it's plates horizontally as each second passes). While the total seconds are represented by the outer dial, making a full rotation after 60 seconds.

The minutes are represented on the left as an 8-bit binary display, with the least-significant bit on the bottom.

The hours are the same as the minutes, but on the right.

To read the binary displays, you simply take all illuminated blocks as 1's, and all the other blocks as 0's. For example, in the preview image the clock is reading 00001101.

How to read binary: wiki.Binary
Related content
Comments: 35

aatifaqua [2010-05-13 16:20:31 +0000 UTC]

loved it
and how come the file size is 1.56kb????

👍: 0 ⏩: 1

Nimphious In reply to aatifaqua [2010-05-18 14:28:29 +0000 UTC]

KISS principle.

👍: 0 ⏩: 1

ShengDaFlashPRo In reply to Nimphious [2010-07-05 06:02:46 +0000 UTC]

10100111001

👍: 0 ⏩: 0

Dj-Maz [2010-03-01 22:59:56 +0000 UTC]

man i love this clockwork.

👍: 0 ⏩: 0

hbar98 [2010-01-22 20:23:10 +0000 UTC]

Could I get a resized version for my LG Dare, Please? 200x240?

👍: 0 ⏩: 1

Nimphious In reply to hbar98 [2010-01-24 06:37:22 +0000 UTC]

I've made two variations of the resolution you requested. If it doesn't work on your phone I should be able to make a different version that might work.

Here you go .

👍: 0 ⏩: 1

hbar98 In reply to Nimphious [2010-04-28 17:28:17 +0000 UTC]

Woah! I haven't been on DA in a long time. Sorry it has taken me this long to get back with you!

I'll download it and then put it on my phone.

Thank you very, very much!

Chad 'hbar98'

👍: 0 ⏩: 1

hbar98 In reply to hbar98 [2010-04-28 17:45:53 +0000 UTC]

Though I had to change phones at the last moment, the ones marked la dare 1 and 2 worked well on the phone, as well as the 240x320. Now to confuse my friends, family, and enemies with a wonderful clock.

👍: 0 ⏩: 0

dangerous123 [2009-07-10 14:57:39 +0000 UTC]

Is it ok if you can export the html file into the downloads. It makes it easier to set it as a desktop wallpaper ( just browse for it and set it as wallpaper ).
Btw, if you do not mind; can you post the code for the smooth easing of the seconds hand clock or is it just a movieclip animation itself? I'm really curious. I'm not really sure if it can be considered as a clock as it does not really live up to its purpose. I can say however that it is a really cool flash toy and it take up little RAM to run passively. Kudos

👍: 0 ⏩: 2

Nimphious In reply to dangerous123 [2009-07-11 07:42:55 +0000 UTC]

Ugh I can't believe I actually typed it out without thinking or testing it. The function should actually be this:

  function getRotation(sec,milli,radius) {
    var rot = sec/60*(Math.PI * 2)+(milli<100?Math.sin(milli/100*Math.PI)*Math.PI/40:0);
    return {'x':Math.sin(rot)*radius,'y':-Math.cos(rot)*radius};
  }

Don't know what the hell I was thinking with tangent...

👍: 0 ⏩: 0

Nimphious In reply to dangerous123 [2009-07-11 07:21:09 +0000 UTC]

If you learn to read it, then it really is a clock. I used a movie clip for the seconds ticking over like that, but it could just as easily be done with a little trig.

For example:

  Rotation = Seconds / 60 + Tan(Milliseconds / 1000 * Pi) / 60

That should give you a rotation similar to that which I animated. If you prefer it, this will give you the x/y coordinates of a point of the same rotation around the center.

  Radius = 50
  Rotation = Seconds / 60 + Tan(Milliseconds / 1000 * Pi) / 60
  X = Sin(Rotation) * Radius
  Y = -Cos(Rotation) * Radius

(If you're using a y-down coordinate system, just remove the minus sign from the Cosine function.)

The previous psuedo code in JavaScript/ActionScript would look something like this:

  function getRotation(sec,milli,radius) {
    var rot = sec / 60 + Math.tan(milli / 1000 * Math.PI) / 60;
    return {'x':Math.sin(rot)*radius,'y':-Math.cos(rot)*radius};
  }

  var d = new Date();
  var result = getRotation(d.getSeconds(),d.getMilliseconds(),50);
  alert('The second-hand point position at '+d.getHours()+':'+d.getMinutes()+':'+d.getSeconds()+'.'+d.getMilliseconds()+' was: '+result.x+', '+result.y+'.' );

That should return something similar to: "The second-hand point position at 17:19:46.210 was: 35.1495599342931, -35.559927396235466."

👍: 0 ⏩: 0

i-love-snape-3 [2009-07-07 11:08:11 +0000 UTC]

Wow. I must have been on this page for half an hour, what an awesome design It inspired me to bug my friend to teach me binary. However, I'm half-binary0-illiterate because I can only read it, not convert to it. This is a really cool little thing. It's a shame that it wouldn't work on my Mac

👍: 0 ⏩: 1

Nimphious In reply to i-love-snape-3 [2009-07-07 14:53:16 +0000 UTC]

Heh, I took a look into it and there doesn't seem any straight-forward way for Macs either, and they don't seem to be able to do it natively.

Oh well.

👍: 0 ⏩: 0

discosmackdown [2009-07-03 12:47:11 +0000 UTC]

this is wonderful! i'd love to use it if i could get it to download. anyway, amazing work on this

👍: 0 ⏩: 2

Nimphious In reply to discosmackdown [2009-07-04 06:48:58 +0000 UTC]

What happens when you hit download?

👍: 0 ⏩: 1

discosmackdown In reply to Nimphious [2009-07-04 11:49:08 +0000 UTC]

it shows the picture when i hit download, but when i try to right click and save it, it doesn't show the "Save target as..." option.

👍: 0 ⏩: 1

Nimphious In reply to discosmackdown [2009-07-05 13:45:20 +0000 UTC]

That's because it's a flash, you'll have to use the file menu, and hit save in there.

👍: 0 ⏩: 1

discosmackdown In reply to Nimphious [2009-07-06 15:51:55 +0000 UTC]

ooh now i see! thanks

👍: 0 ⏩: 0

Wolfzen In reply to discosmackdown [2009-07-03 18:14:56 +0000 UTC]

Are you using Google Chrome? If so, it won't work because... it's Google Chrome, and as such, it does act oddly sometimes.

I got it to work by using Internet Explorer, and right clicking on download, then selecting "Save target as..."

Then, if you want to make it a screensaver you can go here! [link]

👍: 0 ⏩: 0

Wolfzen [2009-07-01 03:10:10 +0000 UTC]

Dang, that's pretty spiffy in a modern, science fiction tone.

Also, here's a program that allows you to make Flash file into a screensaver, called Instantstorm. Shameless plug man, away!

[link]

👍: 0 ⏩: 1

Nimphious In reply to Wolfzen [2009-07-01 07:21:16 +0000 UTC]

Haha yeah, there's quite a few tools that will allow you to make flashes into screen savers, but putting it on your desktop as a wallpaper is the tricky part. (Unless you want to go to the effort of building your own tool to do it.)

In-fact, you could just make a projector (Flash executable) and rename it to ".scr" and pop it into system32, and it'll show up in your screen saver list. Only problem is all it will do is come up when the screen saver activates. I wonder if projectors accept any command line flags for automatically starting in fullscreen...

👍: 0 ⏩: 1

Wolfzen In reply to Nimphious [2009-07-01 07:32:27 +0000 UTC]

Damn... you know your stuff. But I'm not sure about the fullscreen thing. After looking around MS-DOS (Command Prompt), I think you could, but, like I said, I'm not positive. Wouldn't hurt to give it a try though. (As long as you don't put
"Format C:\" anywhere in there. Hahaha!
...
If that's not even possible with the type of scripting you're talking about, then forgive me, for I know extremely little scripting, especially flash.

I'm quite good with it in Morrowind though. =3

👍: 0 ⏩: 1

Nimphious In reply to Wolfzen [2009-07-02 06:37:21 +0000 UTC]

Don't think flash can perform shell commands directly. It's platform independant, so it wouldn't make much sense.

Actionscipt is pretty much just Javascript.

👍: 0 ⏩: 1

Wolfzen In reply to Nimphious [2009-07-02 07:51:47 +0000 UTC]

Oh, I get what you're saying. Now that you've said that, then I'm pretty sure Fullscreen may not work.

👍: 0 ⏩: 0

LorakTodesengel13 [2009-06-23 20:08:36 +0000 UTC]

Why can't I download it? D:

👍: 0 ⏩: 1

Nimphious In reply to LorakTodesengel13 [2009-06-24 06:13:22 +0000 UTC]

Right-click on Download and press "Save Link As..." or "Save target as..." or whatever it is in your browser.

👍: 0 ⏩: 1

LorakTodesengel13 In reply to Nimphious [2009-06-24 23:56:53 +0000 UTC]

Doesn't work doing it :/

👍: 0 ⏩: 1

Nimphious In reply to LorakTodesengel13 [2009-06-25 10:33:00 +0000 UTC]

If you like, I'll upload a zip file for you that you can download from my site.

What resolution would you like it to be?

👍: 0 ⏩: 1

LorakTodesengel13 In reply to Nimphious [2009-06-25 14:21:24 +0000 UTC]

Oh, I'd appreciate it very much!

1024x768, plz :]

👍: 0 ⏩: 1

Nimphious In reply to LorakTodesengel13 [2009-06-26 12:50:13 +0000 UTC]

It's all yours .

👍: 0 ⏩: 1

LorakTodesengel13 In reply to Nimphious [2009-06-29 19:47:47 +0000 UTC]

Thank you so much! ^^

👍: 0 ⏩: 1

Nimphious In reply to LorakTodesengel13 [2009-07-01 07:17:56 +0000 UTC]

No problem.

👍: 0 ⏩: 0

Netbug009 [2009-05-31 20:00:35 +0000 UTC]

Wow, this is awesome! 8D I think some reading instructions would be nice, though. Or are they with the zip if you download it?

👍: 0 ⏩: 1

Nimphious In reply to Netbug009 [2009-06-01 14:23:33 +0000 UTC]

Oh man I completely forgot about how to read it!

Thanks, I'll update it now (Hopefully it's easy enough to understand)

👍: 0 ⏩: 0

flat-cat63 [2009-05-31 07:22:05 +0000 UTC]

My life is so much more complete with this.

👍: 0 ⏩: 0