Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-07-2010, 06:48 AM   #1
djh101
Senior Member
 
Join Date: Mar 2008
Location: CA
Posts: 124
Default My RGB/HSB/Hex Color Converter

Finally finished it. Getting RGB to translate to HSB was a hassle, but it's finally done. Enjoy.
http://stupidgamestuff.com/colorchanger.swf
djh101 is offline   Reply With Quote
Old 10-07-2010, 07:42 PM   #2
bowljoman
Senior Member
 
Join Date: Jan 2008
Posts: 831
Default

good job.
__________________
i = (Andy)this;
bowljoman is offline   Reply With Quote
Old 10-30-2010, 08:11 AM   #3
djh101
Senior Member
 
Join Date: Mar 2008
Location: CA
Posts: 124
Default

Part 2 is up, featuring RGB bars.
http://stupidgamestuff.com/stuff/Color_Converter
djh101 is offline   Reply With Quote
Old 11-02-2010, 11:32 PM   #4
AndrewThomson
Registered User
 
Join Date: Nov 2010
Location: Bristol, UK
Posts: 5
Default

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.
AndrewThomson is offline   Reply With Quote
Old 11-13-2010, 02:29 AM   #5
djh101
Senior Member
 
Join Date: Mar 2008
Location: CA
Posts: 124
Default

Quote:
Originally Posted by AndrewThomson View Post
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.

Last edited by djh101; 11-13-2010 at 04:20 AM.
djh101 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:15 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.