Re: Common standard for defining a color?
| From: | Stefan Neufeind | Date: | Tue, 03 Feb 2004 18:35:16 +0000 |
| Subject: | Re: Common standard for defining a color? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25455@lists.php.net to get a copy of this message | ||
On 3 Feb 2004 at 19:00, Pierre-Alain Joye wrote:
> On Tue, 03 Feb 2004 18:49:40 +0100
> "Stefan Neufeind" <stefan@neufeind.net> wrote:
>
> > What about others?
>
> integer value for RGB(A), fast and nice :)
>
> Besides that, please check Image_Transfrom. It seems most of the
> stuffs are already there too. And we may use it when possible. Please
> notice that there is a pending huge commit from Peter :).
Image_Color already has the array($red, $green, $blue)-thing and
could easily be extended to include an alpha-value also. However
Image_Text currently uses indizes r, g and b - which I can understand
very well from the aspect of easy reading and makes also secure
handling of rgb and cymk together much mroe easy. But in my eyes we
need to change either one or the other - Image_Color or Image_Text
... and maybe others as well ... if we want to find a common way to
handle it and not spend time to convert arrays between packages.
Regards,
Stefan