Dear AppleScripters,
Hola. I know that I can use AppleScript to open the Color Picker window. If the user picks a color, you will get a 16-bit-per-channel color like {52428, 54484, 45232}. If you want to manually convert this color into an 8-bit-per-channel color for an RGB color, I guess you need to divide each component by 256. Well, I would get RGB(204,212,176). And that's what I get if I select RGB Sliders from the color sliders drop-down menu. But you can never convert this RGB color back into what it was. If you multiple each component by 256, you would get {52224,54272,45056}, which differs from the original color.
Is there any way to convert an RGB color back into the original 16-bit-per-channel color?
Thank you for your advice.
Jim |