Re: Recommendation for color-representation in PEAR-packages

From: Date: Tue, 17 Feb 2004 17:12:51 +0000
Subject: Re: Recommendation for color-representation in PEAR-packages
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-580@lists.php.net to get a copy of this message
On Tue, Feb 17, 2004 at 04:56:30PM +0100, Stefan Neufeind wrote: > Color-representation inside PEAR-packages > > We recommend that developers store and use an array-representation of > color-values in their PEAR-packages. All values are in the range of > 0..255. > > * RGB-presesentation * > > An example using our "PEAR-green" would look like: > > $color = array(0x33, 0x99, 0x00); ... > Status: Currently Image_Color already offers functions to convert > color-names (e.g. "green") and hex-representations-strings (e.g. > "#339900") to the PEAR-RGBA-format. We are working to get alpha- > channel support added hopefully soon and will later add funtions for > CYMK-conversion as well. So if I want to bring some red text, the recommendation would be that, instead of just using '#ff0000', I would need to create an array and add a dependency on the Image_Color package? -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

« previous php.pear.qa (#580) next »