Image_Color returning?
| From: | Sönke Ruempler | Date: | Thu, 20 Jan 2005 15:47:04 +0000 |
| Subject: | Image_Color returning? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17037@lists.php.net to get a copy of this message | ||
Hi,
which method is used to return the color(s) in Image_Color? Example:
$color = new Image_Color;
$mainColor = '#00FF00';
$color->setColors($mainColor, $mainColor);
$color->changeLightness(150);
The only possible solution for this I found was accessing private
methods/members from the outside:
$lightColor = '#' . $color->_returnColor($color->color1);
But that is not really nice, is it?
--
soenke