Re: Common standard for defining a color?

From: Date: Tue, 03 Feb 2004 18:42:18 +0000
Subject: Re: Common standard for defining a color?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25460@lists.php.net to get a copy of this message
On 3 Feb 2004 at 19:27, Pierre-Alain Joye wrote: > 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. Yeah, Image_Color has handling for color-names. And I intend to offer an extension for that package to magically turn *any* color- definition into rgb (decide automatically if it's given in webcolor- notation, as a color name, as rgb-array or whatever). > > 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. So with no indizes at all, in your eyes? Just plain int-arrays, consisting of 3 values (rgb) or 4 values (rgba)? How would we represent cymk or other formats? Stefan

« previous php.pear.dev (#25460) next »