Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }