| @@ 238-248 (lines=11) @@ | ||
| 235 | * @param float $h The hue |
|
| 236 | * @return void |
|
| 237 | */ |
|
| 238 | private static function _hslrgb_high(float &$r, float &$g, float &$b, float $c, float $x, float $h) { |
|
| 239 | if ($h < 240) { |
|
| 240 | $r = 0; |
|
| 241 | $g = $x; |
|
| 242 | $b = $c; |
|
| 243 | } else { |
|
| 244 | $r = $x; |
|
| 245 | $g = 0; |
|
| 246 | $b = $c; |
|
| 247 | } |
|
| 248 | } |
|
| 249 | ||
| 250 | /** |
|
| 251 | * Convert a RGB array to a HSB array |
|
| @@ 158-168 (lines=11) @@ | ||
| 155 | * @param float $h The hue |
|
| 156 | * @return void |
|
| 157 | */ |
|
| 158 | protected static function _hslrgb_high(float &$r, float &$g, float &$b, float $c, float $x, float $h) { |
|
| 159 | if ($h < 240) { |
|
| 160 | $r = 0; |
|
| 161 | $g = $x; |
|
| 162 | $b = $c; |
|
| 163 | } else { |
|
| 164 | $r = $x; |
|
| 165 | $g = 0; |
|
| 166 | $b = $c; |
|
| 167 | } |
|
| 168 | } |
|
| 169 | } |
|
| 170 | ||