Lines Matching defs:g
86 * @param float $g
91 public function rgb2hsl($r, $g, $b)
95 $min = min($r, $g, $b);
96 $max = max($r, $g, $b);
113 $gDiff = ((($max - $g) / 6) + ($diff / 2)) / $diff;
118 } elseif ($g == $max) {
138 * Output is RGB in normal 255 255 255 format, held in $r, $g, $b
150 $g = $l * 255;
160 $g = round(255 * $this->hue2rgb($tmp2, $tmp, $h));
164 return [$r, $g, $b];