Re: Re: Image_Color named color

From: Date: Mon, 20 Sep 2004 14:19:42 +0000
Subject: Re: Re: Image_Color named color
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33487@lists.php.net to get a copy of this message
On Mon, 20 Sep 2004 09:28:36 +0200, Sebastian Bergmann <sb@sebastian-bergmann.de> wrote: > Jesper Veggerby wrote: > > Both seems to be used commonly, I think you can use both with an > > e and an a (perhaps US vs UK?), but I would think you should be > > consistent in your choice? > > I, too, would prefer consistent names but IIRC the original author of > the Image_Color package used an "official" list of web-safe colors for > both the color names and color values used in the namedColor2RGB() > method. Actually, I don't think I ever put in a list of web-safe colors with their names, that might have been someone else. However, it was long ago, so I could easily be mistaken. The original intent of Image_Color (originally named Color) was merely to help someone out who wanted to mix colors. If you mixed color A and color B, what color would you get? I then worked into it color gradients, and then the ability to determine whether to use a light color or a dark color (default to white and black respectively) for a font color when placed against a certain background color. Basically, Image_Color was meant to be a color handling and mixing class. I had then had the thought of implementing other areas of color handling, such as handling colors for consoles and what not, but lost interest. Nor is color handling my specialty. Jason Lotito

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