Example #1
0
 public function makePalette(Color $color)
 {
     list($red, $green, $blue) = $color->asArray();
     $light = "rgba({$red},{$green},{$blue},0.1)";
     $full = "rgba({$red},{$green},{$blue},1)";
     return ['fillColor' => $light, 'strokeColor' => $full, 'pointColor' => $full, 'pointStrokeColor' => "#fff", 'pointHighlightFill' => "#fff", 'pointHighlightStroke' => $full];
 }
Example #2
0
 public function makePalette(Color $color)
 {
     list($red, $green, $blue) = $color->asArray();
     return ['color' => "rgba({$red},{$green},{$blue},1)", 'highlight' => "rgba({$red},{$green},{$blue},0.8)"];
 }
Example #3
0
 public function makePalette(Color $color)
 {
     list($red, $green, $blue) = $color->asArray();
     return ['strokeColor' => "rgba({$red},{$green},{$blue},1)", 'pointColor' => "rgba({$red},{$green},{$blue},1)", 'pointStrokeColor' => "rgba({$red},{$green},{$blue},0.8)"];
 }