public function __construct() { $this->measure = 0; $this->title = Marker::$defaultTitle; $color = new Color(); $color->setR(Marker::$defaultColor[0]); $color->setG(Marker::$defaultColor[1]); $color->setB(Marker::$defaultColor[2]); $this->color = $color; }
/** * Transforms a list of RGB codes into an array * @param integer $red red value * @param integer $green green value * @param integer $blue blue value * @return array RGB array */ public static function toArray($red, $green, $blue) { $color = new Color(); $color->setR($red); $color->setG($green); $color->setB($blue); return $color->value; }