[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Tasteful colour generator



>>>>> "David" == David Greaves <david@telekinesys.co.uk> writes:

David> OK, I'll bite .... :)
David> How can you generate 'tasteful' colour sets?

David> rand(0xF).rand(0xF). rand(0xF).rand(0xF). rand(0xF).rand(0xF)

David> doesn't cut it :)

David> I was thinking of random (but nice) colour schemes for web pages.

Probably the best way is to start by thinking of nice HSV spaces, then
generate random HSVs and map those to RGB.  Somewhere I've seen the
formulas for that, but they're not at my fingertips.

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe