Re: Color Class
| From: | Tomas V.V.Cox | Date: | Mon, 26 Nov 2001 12:23:38 +0000 |
| Subject: | Re: Color Class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3098@lists.php.net to get a copy of this message | ||
Martin Jansen wrote:
>
> On Sun, 25 Nov 2001 18:34:46 -0500, Jason Lotito wrote:
>
> >It's a rather simple class, and right now it allows you to mix colors,
> >as well as find color ranges (You want to grab 10 colors from FF0000 to
> >0000FF) and even change the hue of colors currently contained (making
> >rainbow effects relatively easy).
>
> Did you have a look at php4/pear/Experimental/Image? Perhaps you can
> merge your code with the already existing stuff?
>
I like the "esoteric" idea of a PEAR_Color class. Thinking on it more in
deep, we could have "abstracted" colors. For ex:
$PEAR_Colors = array(
'red' => array(
'hex' => '222222',
'rgb' => '34,34,34',
'console' => '01;31'
)
);
So you could use the PEAR color 'red' in whatever environment you are:
web, php-gtk or bash.
Tomas V.V.Cox