Lines Matching defs:s
103 $s = 0;
107 $s = $diff / ($max + $min);
109 $s = $diff / (2 - $max - $min);
133 return [$h, $s, $l];
137 * Input is HSL value of complementary colour, held in $h2, $s, $l as fractions of 1
141 * @param float $s
146 public function hsl2rgb($h, $s, $l)
148 if ($s == 0) {
154 $tmp = $l * (1 + $s);
156 $tmp = ($l + $s) - ($s * $l);