RE: [PHP] thirds of a color wheel
| From: | Martin Towell | Date: | Wed, 31 Jul 2002 05:15:45 +0000 |
| Subject: | RE: [PHP] thirds of a color wheel | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110464@lists.php.net to get a copy of this message | ||
You'll need to find out how to convert from RGB to HSV
Then all you need to do is look at the hue and fiddle with that.
Sorry I can't be any more help than that, because I don't know what the
maths is to convert from one colour space to the other :( But this should
be a start
HTH
Martin
-----Original Message-----
From: Justin French [mailto:justin@indent.com.au]
Sent: Wednesday, July 31, 2002 2:56 PM
To: php
Subject: [PHP] thirds of a color wheel
Hi,
I'm working on some scripts which generate color schemes from a base color
(RRRGGGBBB).
Working out lighter colors, darker colors and inverse (complimentary) colors
was easy, but now I'm trying to figure out the right math for a triad of
colors (3 colors with equal spacing around the color wheel), given a
starting color.
Any clues would be great :)
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php