Hue, Saturation and Value question

Ken Ray kray at sonsothunder.com
Sat May 20 22:49:53 EDT 2006


On 5/20/06 1:29 PM, "Garrett Hylltun" <garrett at paraboliclogic.com> wrote:

> Rev 2.6.1 / OS X
> 
> Greetings,
> 
> Does anyone know what the math equations are behind getting the
> Saturation and Value of a color?
> 
> Hmmmm, maybe I should elaborate more.
> 
> I have sliders setup for RGB, and I actually have figured out how to
> setup a slider for Hue, but I can't figure out how to code some sliders
> for Saturation and Value.
> 
> Does anyone have any info on this topic?

Check out Monte Goulding's libColor, which converts between RGB, HEX, HSV,
CMYK, Pantone, and 'text' (i.e. Rev's phrases for colors):

    http://www.sweattechnologies.com/rev/


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list