Hex Color Clock Programming Challenge
#1
Posted 04 April 2010 - 12:25 AM
How will this even work?
A hex color is specified as three hex values such as 0A 12 BF, in the end we get 16 million color possibilities and luckily for us that number is greater than 86400 which is the number of colors our clock will generate (1 for each second in a day). The clock itself will consist of a single square displaying a solid color, that color will be generated by way of specifying 3 different hex values which will be the hours/minutes/seconds of the time using a 24 hour clock, so at 20:16:59 it will be a shade of Navy Blue.
I don't know anything about programming for the PC and so I cannot program this myself. I am offering up the idea to anyone that feels like running with it. Some ideas I have come up with are to help give more varied results:
-Use the 24 hour clock, it gives you double the colors and double the fun
-Use 24, and 60 in place of 0 respectively where possible. This gets you more color and less black. Probably can be done by specifying 0=60
-Using a multiplier to spread out the numbers may help generate brighter colors. Such as converting the value to a percent of its place (1 minute is 1.5% of an hour) and then use that percent of 256 which is the total possible for 2-digit hex. Of course you would have to make the program round the value to a whole number at the end so 1 minute would give you a 4, as 4.26 would not really work for this.
This is just an idea I came up with, I don't know how to it because the closes to programming I have gotten is writing CNC G/M Codes, TI-83 calculator, some robotics, PLC Ladder Logic and some digital electronics logic. I have no experience on the PC platform besides TRYING to teach myself Visual Basic with MS Visual Studio and in the end I decide to stay with Industrial Electronics and leave the PC to others.
8GB DDR3 RAM
XFX ATI Radeon HD6850 1 GB DDR5, 26" Widescreen HDMI
500GB + 80GB HDD
Windows 7 Pro, Mozilla Firefox, AutoCAD 2011, Solidworks 2009
1/19/2012
#2
Posted 07 April 2010 - 01:37 AM
See the clock : http://silence30.byethost4.com/
#3
Posted 07 April 2010 - 09:16 AM
Looks kind of cool.
Couple of suggestions, though (ain't there always?
Use double digits.
Instead of 9:2:5, go with 09:02:05.
Less confusing.
Make it round, or oval, instead of rectangular.
Stay away form the darker colors.
When it hit 9:00 AM, my time, it went black, until the colors started to lighten up.
Black digits, on dark colors don't work too well.
Or, use pure white for the digits, and leave out any shade of white.
White is boring, anyway.
Become a BleepingComputer fan: Facebook
#4
Posted 07 April 2010 - 02:00 PM
I inverted the color of the background for obtaining the color of the digits to display them in contrast. The clock does not appear round in Internet Explorer as it does not support CSS3 that much. Perhaps IE9 would support more.
#5
Posted 07 April 2010 - 05:52 PM
Boredom Software Stop Highlighting Things
#6
Posted 07 April 2010 - 05:53 PM
There are a couple of spots where the inverted colors are real hard on the eyes, but other than that, it looks good.
Quote
Become a BleepingComputer fan: Facebook
#7
Posted 07 April 2010 - 10:18 PM
I like the java version because it keeps with the idea of being minimalist in the interface. I also like Andrews because it also displays the Hex and Binary values so it is easy to show to a non-techie and sort of explain what is going on.
This post has been edited by bigalexe: 07 April 2010 - 10:23 PM
8GB DDR3 RAM
XFX ATI Radeon HD6850 1 GB DDR5, 26" Widescreen HDMI
500GB + 80GB HDD
Windows 7 Pro, Mozilla Firefox, AutoCAD 2011, Solidworks 2009
1/19/2012
#9
Posted 07 April 2010 - 10:40 PM
This is all I got.

Winrar.
This post has been edited by DSTM: 07 April 2010 - 10:45 PM
#10
Posted 07 April 2010 - 10:48 PM
Very nice clock Andrew
#11
Posted 07 April 2010 - 11:06 PM
And yeah, I used 7zip with the Bzip2 algorithm to create the zip file. Looks like I should stick to LZMA from now on!
This post has been edited by Andrew: 07 April 2010 - 11:07 PM
Boredom Software Stop Highlighting Things
#12
Posted 07 April 2010 - 11:15 PM
I can't extract it with Windows zip utility.

EDIT:
Never mind.
Just saw your last post.
Guess I won't be able to see it.
Become a BleepingComputer fan: Facebook
#13
Posted 08 April 2010 - 12:35 AM
Now compressed using less geeky methods (at the expense of being 81.92KB larger or using a proprietary algorithm [RAR], depending on which one you get):
http://www.boredomsoft.org/hosted/hexclock.zip
http://www.boredomsoft.org/hosted/hexclock.rar
This post has been edited by Andrew: 08 April 2010 - 12:41 AM
Boredom Software Stop Highlighting Things
#14
Posted 08 April 2010 - 05:48 AM
#15
Posted 08 April 2010 - 08:19 AM
Now, a part of my desktop.
If there was just some way to adjust opacity, set as "always on top", with "click-thru" ability ...............
Become a BleepingComputer fan: Facebook

Help


Back to top













