public function desaturate($pct)
    {
        $saturation = $this->saturation() - $pct;
        $saturation = $saturation < 0 ? 0 : $saturation;

        return $this->withSaturation($saturation);
    }
public function desaturate($pct)
    {
        $saturation = $this->saturation() - $pct;
        $saturation = $saturation < 0 ? 0 : $saturation;

        return $this->withSaturation($saturation);
    }
public function desaturate ( $ pct ) { $ saturation = $ this -> saturation ( ) - $ pct ; $ saturation = $ saturation < 0 ? 0 : $ saturation ; return $ this -> withSaturation ( $ saturation ) ; }
Desaturate the color.

@param int $pct

@return static
Desaturate the color .