Lines Matching defs:saturation
20 private $saturation;
29 * @param $saturation
32 public function __construct($hue, $saturation, $lightness)
35 $this->saturation = $saturation;
40 public static function createFromChannels(float $hue, float $saturation, float $lightness): ColorHsl
42 return new ColorHsl($hue, $saturation, $lightness);
52 return $this->saturation;
84 $saturation = $this->saturation / 100;
87 $chroma = (1 - abs(2 * $lightness - 1)) * $saturation;
142 public function setSaturation(int $saturation): ColorHsl
144 if ($saturation < 0 || $saturation > 100) {
147 $this->saturation = $saturation;
160 return "hsl($this->hue deg, $this->saturation%, $this->lightness%)";