Lines Matching refs:l
99 $l = ($max + $min) / 2;
106 if ($l < 0.5) {
133 return [$h, $s, $l];
137 * Input is HSL value of complementary colour, held in $h2, $s, $l as fractions of 1
142 * @param float $l
146 public function hsl2rgb($h, $s, $l)
149 $r = $l * 255;
150 $g = $l * 255;
151 $b = $l * 255;
153 if ($l < 0.5) {
154 $tmp = $l * (1 + $s);
156 $tmp = ($l + $s) - ($s * $l);
158 $tmp2 = 2 * $l - $tmp;