protected function getColorMapOrAsHex(string $color)
    {
        return isset($this->colorMap[$color]) ? $this->colorMap[$color] : $color;
    }
protected function getColorMapOrAsHex(string $color)
    {
        return isset($this->colorMap[$color]) ? $this->colorMap[$color] : $color;
    }
protected function getColorMapOrAsHex ( string $ color ) { return isset ( $ this -> colorMap [ $ color ] ) ? $ this -> colorMap [ $ color ] : $ color ; }
Check if the color is within the color map, or return it as normal.

@param string $color

@return string
Check if the color is within the color map or return it as normal .