Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Contrasting Colours

by broquaint (Abbot)
on May 29, 2003 at 15:26 UTC ( [id://261568]=note: print w/replies, xml ) Need Help??


in reply to Contrasting Colours

Sounds like color_contrast_hex from Color::Calc would be suited
use Color::Calc; my $colour = 'green'; my @rgb = color_contrast_hex($colour) =~ /(..)/g; print "contrasted RGB = @rgb\n"; __output__ contrasted RGB = ff 00 ff

HTH

_________
broquaint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found