PDA

View Full Version : My RGB/HSB/Hex Color Converter


djh101
10-07-2010, 06:48 AM
Finally finished it. Getting RGB to translate to HSB was a hassle, but it's finally done. Enjoy:).
http://stupidgamestuff.com/colorchanger.swf

bowljoman
10-07-2010, 07:42 PM
good job.

djh101
10-30-2010, 08:11 AM
Part 2 is up, featuring RGB bars. :)
http://stupidgamestuff.com/stuff/Color_Converter

AndrewThomson
11-02-2010, 11:32 PM
there is a bug in your code, though a small one. if you enter the color code in hex the circle on the plate doesn't move, although the color changes and so do RGB and HSB values.

djh101
11-13-2010, 02:29 AM
there is a bug in your code, though a small one. if you enter the color code in hex the circle on the plate doesn't move, although the color changes and so do RGB and HSB values.

Hmm, that only happens when you enter a shade of grey. Thanks, I'll look into that.

EDIT: Wow, there were a few problems going on there. Fixed and reuploaded now, though. Saturation and brightness now change when inputting a grey shade hex, saturation and hue values are now correct when brightness is 0, and hue is now correctly calculated from rgb values:).