Lines Matching defs:hue
18 private $hue;
28 * @param $hue
32 public function __construct($hue, $saturation, $lightness)
34 $this->hue = $hue;
40 public static function createFromChannels(float $hue, float $saturation, float $lightness): ColorHsl
42 return new ColorHsl($hue, $saturation, $lightness);
57 return $this->hue;
85 $hue = $this->hue;
88 $x = $chroma * (1 - abs(fmod(($hue / 60), 2) - 1));
91 if ($hue < 60) {
95 } else if ($hue < 120) {
99 } else if ($hue < 180) {
103 } else if ($hue < 240) {
107 } else if ($hue < 300) {
154 $this->hue += ($this->hue > 180) ? -180 : 180;
160 return "hsl($this->hue deg, $this->saturation%, $this->lightness%)";