Hi,
just guessing here, but i think converting them to HSB first might work.
Then you only need the B value.

hth
JC

On Thu, Jul 24, 2008 at 8:55 PM, Jim McIntyre <[EMAIL PROTECTED]> wrote:

> Does anyone know a good formula for comparing brightness of RGB color
> values?
>
> Obviously, 0xCCCCCC is brighter than 0x333333. But one can't always infer
> that a larger number is brighter than a smaller: 0x330000 is a larger
> number, but much darker than, 0x00FFFF.
>
> Would averaging (or simply adding) the three color components work, or is
> it more nuanced than that?
>
> Thanks,
> Jim
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to