...not sure if this helps but perhaps one way might be to emulate the colour tools palette, by transforming the RGB values to/from HSB and then vary the saturation and/or brightness values.
I guess it depends what you mean by the term 'shade'? And of course, how to transform the values would be a different question! ;-) Best, Keith.. On 15 Feb 2012, at 11:15, Keith (Gulf Breeze Ortho Lab) wrote: > 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 of a color and > change the value?) > > Any help would be most appreciated... > > Thanks! > > - Boo > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode