/** * Create a new Image_Graph_color. * @param int $red The red part or the whole part * @param int $green The green part (or nothing), or the alpha channel * @param int $blue The blue part (or nothing) * @param int $alpha The alpha channel (or nothing) */ function newColor($red, $green = false, $blue = false, $alpha = false) { $this->_debug("Creating color Red = $red, Green/Alpha = $green, Blue = $blue, Alpha = $alpha"); if ($this->_parent) { $this->_parent->newColor($red, $green, $blue, $alpha); } }