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]; }
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)"]; }
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)"]; }