Converting ColorPicker values into 24-bit color values
Converting ColorPicker values into 24-bit color values
- Subject: Converting ColorPicker values into 24-bit color values
- From: Jim Thorton <email@hidden>
- Date: Sun, 05 Jun 2011 12:24:24 +0900
Hello AppleScripters,
A while ago, I picked a simple conversion formula at one web site (http://www.macosxautomation.com/applescript/sbrt/sbrt-04.html) for converting the RGB color values returned by ColorPicker into 24-bit RGB color values. It works fine except a very minor thing. I just happened to choose one red-like color, which Color Picker returns the following.
{58418, 477, 4919}
According to the web site above, I would just divide each value by 256. Since none of them is greater than 255, after rounding them out, I get the following.
RGB(228,2,19)
Well, if I go back to Color Picker, picking the same color and setting the color menu to RGB Sliders, I get the following.
RGB(227,2,19)
So which is correct?
Thank you for your advice.
Jim _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden