Re: Color Conversion
Re: Color Conversion
- Subject: Re: Color Conversion
- From: Richard Smykla <email@hidden>
- Date: Sat, 3 Feb 2001 11:04:01 -0500
I need to convert some RGB colors to HLS and/or HSV?
Does anyone know the proper math/syntax to do this???
for Example: given RGB value: {6168, 19275, 33153}
--> {211, 79, 30}
ie:
H: 211
L: 69
S: 30
Have been searching apples web site but can only find programming code
(WAY outa my league) to handle this.
Thanks,
xandra
Xandra,
Check the threads in this discussion:
http://www.bumppo.net/lists/realbasic-nug/2000/06/msg02225.html
Also, for a detailed discussion of color-spaces:
http://www.nevod.ru/linux/doc/Grokking-the-GIMP-v1.0/node52.html
Hope this helps.
Rick
--
Rick Smykla
email@hidden