Re: Color Class

From: Date: Mon, 26 Nov 2001 13:52:10 +0000
Subject: Re: Color Class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3108@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > > > It will probably more flexible to not store all differents colors > > value in the same array. There are many colors standart (Rasmus told > > us about cmyk and spots b.e.) and maybe pantone and others stuffs like > > that. The array will grow too much. One array per colortype > > PEAR_Colors_RGB PEAR_Colors_CMYK,... ? We don't need to include all > > colors and maybe more modular. > > Or store it in one format and figure out the appropriate conversion > algorithms to the various other formats. Some cannot be automatically > converted, but for the ones that can there is no reason to duplicate the > data. > It's not a "space" problem it's a "speed" problem. Think on gradients or "show colors" operations. Tomas V.V.Cox

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