Hacker News new | ask | show | jobs
by dshankar 5598 days ago
Simple & beautiful.

Small criticism: Why Flash?

3 comments

That "full screen" button in the top-right.

Or, at least, that's the only thing I see there that you can't do with HTML/JS.

You can actually, F11
Well, yeah, but you can't have a handy button for it on the page.
Not in Safari. It doesn't have fullscreen.
It should be simple enough to implement in HTML - it looks like it's just doing (seconds since midnight × 16777215 / 86400), converting to hex and using that as a colour. Toggling between "clock" and "colour" mode would be a bit more difficult, but doable.

Anyone feeling up to the challenge?

Here's my attempt: http://brisy.info/colors It treats each section of the time as a hex pair, see colors.js for implementation.

edit: Hours corrected. Thanks wladimir

Nice! One small correction: ((h / 60) * 255) should be ((h / 24) * 255) probably
Probably easier to port it to a screensaver.