Working on a proposal for Image_Color2
| From: | andrew morton | Date: | Sun, 14 Aug 2005 00:58:31 +0000 |
| Subject: | Working on a proposal for Image_Color2 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-39344@lists.php.net to get a copy of this message | ||
I put together some additions (RGB->HSV and RGB->HSV) to Image_Color
and contacted the lead maintainer a couple of times to see about
getting them included. Not hearing anything, I got a bit frustrated
and had some time so I've refactored Image_Color to take advantage of
PHP 5's OOP features.
For lack of a better name, I'm calling it Image_Color2. It supports
RGB color conversion to and from different color models through
delegate classes. Hex, WebsafeHex, Named and HSV are "finished" and
I'm working on HSL and Grayscale right now.
I'd like to get some feedback so I posted a snap shot of the code at:
http://drewish.com/projects/Pear/Image_Color2-0.0.1.tgz
If you just want to look, the (incomplete) phpDocs are available at:
http://drewish.com/projects/Pear/Docs/
I have a full set of PHPUnit2 unit tests but they're not included.
Thanks for your consideration,
andrew