Hot Door CORE Forum

Full Version: ArtColor::FromLab
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a question. I have been trying to use the ArtColor::FromLab function. But I notice the parameter range are in between L[0.0,1.0], A[-1.0,1.0] and B[-1.0,1.0]. Lab color values in "ILLUSTRATOR CS6" for red would be (L:55, A:116, B:110). Which is not in range as defined for the function ArtColor::FromLab. Could anyone guide me on this..

Is there a function to convert my original swatch lab values to parameter that is defined for ArtColor::FromLab?? (If yes is it safe method.)

*Note: It seems like the same behavior with RGB and CMYK. The range are different from the one provide with illustrator itself.
Can anyone explain further on this.

Let me know what am I missing here.

Regards,
JUN
A floating point range of 0.0 to 1.0 is a very common way to handle color channel values rather than an integer range of 0 to 255, or 0 to 100, or 0 to 65535, or ... you get the idea.

http://lmgtfy.com/?q=rgb+0+to+1+scale

http://stackoverflow.com/questions/10848...to-1-scale