Image_Graph_Fill_Common::setColor()

Image_Graph_Fill_Common::setColor() -- Set color

Synopsis

require_once '/Graph/Fill/Common.php';

void Image_Graph_Fill_Common::setColor (mixed $color)

Description

Please note that derived classes which might need more than one color (e.g. for a gradient fill) might overwrite this function and demand that $color is not one color but an array of colors.

Parameter

mixed $color

any color representation supported by Image_Graph_Color::color2RGB()

Throws

throws no exceptions thrown

See

see Image_Graph_Color::color2RGB()

Note

This function can not be called statically.