Re: Converting ColorPicker values into 24-bit color values
Re: Converting ColorPicker values into 24-bit color values
- Subject: Re: Converting ColorPicker values into 24-bit color values
- From: Stan Cleveland <email@hidden>
- Date: Mon, 06 Jun 2011 12:06:49 -0700
On Jun 4, 2011, at 8:24 PM, Jim Thorton wrote:
> 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?
Hi Jim,
There's less than a 1/2-percent difference between 228 and 227. The difference you'd see using any display or printing technology would be negligable, if even perceptable. My advice would be to ignore it.
Stan C.
_______________________________________________
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