Re: Convert rgb to lightness or darkness

2014-10-09 Thread William Prothero
Ben: Thanks. This does a better job. Best, Bill William A. Prothero http://es.earthednet.org/ On Oct 9, 2014, at 2:38 AM, Ben Rubinstein wrote: > In the standard formula for RGB -> HSL (Hue, Saturation, Lightness), > Lightness is calculated as the average of the max and min of the RGB values.

Re: Convert rgb to lightness or darkness

2014-10-09 Thread Ben Rubinstein
om black to yellow text. Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von William Prothero Gesendet: Dienstag, 7. Oktober 2014 21:59 An: Use-livecode Use-livecode Betreff: Convert rgb to lightness or darkness Folks: I’m p

AW: Convert rgb to lightness or darkness

2014-10-08 Thread Tiemo Hollmann TB
vecode-boun...@lists.runrev.com] Im Auftrag > von William Prothero > Gesendet: Dienstag, 7. Oktober 2014 21:59 > An: Use-livecode Use-livecode > Betreff: Convert rgb to lightness or darkness > > Folks: > I’m putting text on an image that will be turned into a snapshot. The image > goes from

Convert rgb to lightness or darkness

2014-10-07 Thread William Prothero
Folks: I’m putting text on an image that will be turned into a snapshot. The image goes from light to dark. The text is a one or two digit integer. I want it to show up on the image. For dark parts of the image, I set it to yellow, but for light parts of the image, I want to set it to black. Is