protected function setColor(ColorInterface $color = null) { $clr = null !== $color ? $color->get(3, true) : 'rgb(0,0,0)'; return new \ImagickPixel($clr); }