Re: Common standard for defining a color?
| From: | Pierre-Alain Joye | Date: | Tue, 03 Feb 2004 18:27:00 +0000 |
| Subject: | Re: Common standard for defining a color? | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25451@lists.php.net to get a copy of this message | ||
On Tue, 03 Feb 2004 19:09:45 +0100
Norbert Mocsnik <pear-dev@mocsnik.hu> wrote:
> Driver/ColorDefs.php.
> http://cvs.php.net/cvs.php/pear/Image_Transform/
I know... (see the maintainers list). What I said is 99.99999% of the
usage will be RGB(A). For the color names mapping, we have already a
package for that too.
> Actually I vote on the idea of Stephan Wentz.
> array(
> "cmyk" => array(1,2,3,4),
> "rgb" => array(3,5,4),
> "alpha" => array(1)
> );
IIRC there is no vote for such things, up to the maintainers (which can
follow advices and have to follow some defined rules) :-D
I do not like it. A single array works well for rgb, rgba, and alpha.
CMYK may not be used as much as rgb and a optionnal boolean fifth entry
should fix ambiguous values (rgba or cmyk).
Single value should be passed either as array or not.
my 2 cents,
hth
pierre