SassColour::getBlue PHP Méthode

getBlue() public méthode

Returns the blue component of this colour.
public getBlue ( boolean $value = false ) : integer
$value boolean
Résultat integer the blue component of this colour.
    public function getBlue($value = false)
    {
        if ($this->blue === null) {
            $this->hsl2rgb();
        }
        if ($value && isset($this->blue->value)) {
            return $this->blue->value;
        }
        return max(0, min(255, str_replace(',', '.', round($this->blue))));
    }