Re: Color Class
| From: | Martin Jansen | Date: | Mon, 26 Nov 2001 17:33:42 +0000 |
| Subject: | Re: Color Class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3116@lists.php.net to get a copy of this message | ||
On Mon, 26 Nov 2001 13:23:38 +0100, Tomas V.V.Cox wrote:
>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'
> )
>);
I like this idea, but also think, that we should try to keep the array
as small as possible (by using algorithms to "calculate" the different
color values).
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/