Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: to generate a set of well contrasted colors

by Anonymous Monk
on Nov 07, 2003 at 19:42 UTC ( [id://305421]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: to generate a set of well contrasted colors
in thread to generate a set of well contrasted colors

Y = 0.212671 * R + 0.715160 * G + 0.072169 * B
...but those are for the sRGB primaries in linear space; css/HTML codes are in gamma space.

Replies are listed 'Best First'.
Re: Re: Re: Re: to generate a set of well contrasted colors
by Everlasting God (Beadle) on Nov 08, 2003 at 01:51 UTC
    D'Oh! Right you are. That should have said Y' = etc. That gives Luma, which is plenty close enough to actual Lightness (which is what this calls for, not Luminosity that Y is stands for) for this application.


    'The fickle fascination of and Everlasting God' - Billy Corgan, The Smashing Pumpkins

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found