Lines Matching defs:h
93 $h = 0;
102 $h = 0;
117 $h = $bDiff - $gDiff;
119 $h = (1 / 3) + $rDiff - $bDiff;
121 $h = (2 / 3) + $gDiff - $rDiff;
124 if ($h < 0) {
125 ++$h;
128 if ($h > 1) {
129 --$h;
133 return [$h, $s, $l];
140 * @param float $h
146 public function hsl2rgb($h, $s, $l)
159 $r = round(255 * $this->hue2rgb($tmp2, $tmp, $h + (1 / 3)));
160 $g = round(255 * $this->hue2rgb($tmp2, $tmp, $h));
161 $b = round(255 * $this->hue2rgb($tmp2, $tmp, $h - (1 / 3)));