Re: Common standard for defining a color?

From: Date: Tue, 03 Feb 2004 20:18: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-25471@lists.php.net to get a copy of this message
On 3 Feb 2004 at 19:54, Pierre-Alain Joye wrote: > On Tue, 03 Feb 2004 19:42:18 +0100 > "Stefan Neufeind" <stefan@neufeind.net> wrote: > > > 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? > > See my other post, a fifth entry. But you introducted a fifth value of type "bool". Norbert was aiming at having multiple standards - so this would need to be an int (if we're dealing with constants) or even a string. I also am not in favor of demanding it's the "fifth" value. What if I have cmyk and an alpha-value or something? How about demanding that at least this field uses an index "type"? Then we would have 0..2, 0..3 or 0..4 as int/float-values and an index "type" e.g. having "rgb" in it. Hmm - should we demand a separation of rgb and rgba in this case - or simply check if an alpha is present, then it's rgba? Stefan

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