Way to find a lighter and darker shade of a RGB color?
Posted: Wed Feb 15, 2012 12:48 pm
Hi All,
I have a problem... If a user selects a color and I put it into a variable (as RGB), how can I find a shade that is several shades lighter, and a shade that is several shades darker, also in RGB format?
For example, I put 0,255,64 into myVar. (This color a shade of green.) Programmatically, how can I find a shade that is several shades lighter in green and a shade that is several shades darker in green from this base color?
(By the way... Is there a way in LiveCode to determine the hue, saturation, and brightness of a color and change the values?)
Any help would be most appreciated...
Thanks!
- Boo
I have a problem... If a user selects a color and I put it into a variable (as RGB), how can I find a shade that is several shades lighter, and a shade that is several shades darker, also in RGB format?
For example, I put 0,255,64 into myVar. (This color a shade of green.) Programmatically, how can I find a shade that is several shades lighter in green and a shade that is several shades darker in green from this base color?
(By the way... Is there a way in LiveCode to determine the hue, saturation, and brightness of a color and change the values?)
Any help would be most appreciated...
Thanks!
- Boo