lib/Ajde/Document/Processor/Css/lib/less/lessc.inc.php 1 location
|
@@ 1221-1225 (lines=5) @@
|
| 1218 |
|
if ($min == $max) { |
| 1219 |
|
$S = $H = 0; |
| 1220 |
|
} else { |
| 1221 |
|
if ($L < 0.5) { |
| 1222 |
|
$S = ($max - $min) / ($max + $min); |
| 1223 |
|
} else { |
| 1224 |
|
$S = ($max - $min) / (2.0 - $max - $min); |
| 1225 |
|
} |
| 1226 |
|
|
| 1227 |
|
if ($r == $max) { |
| 1228 |
|
$H = ($g - $b) / ($max - $min); |
lib/Ajde/Document/Processor/Css/lib/maximizer/inc/ColorSpace.php 1 location
|
@@ 215-219 (lines=5) @@
|
| 212 |
|
} // No Chroma |
| 213 |
|
|
| 214 |
|
else { |
| 215 |
|
if ($L < 0.5) { |
| 216 |
|
$S = $D / ($max + $min); |
| 217 |
|
} else { |
| 218 |
|
$S = $D / (2 - $max - $min); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
$DR = ((($max - $_R) / 6) + ($D / 2)) / $D; |
| 222 |
|
$DG = ((($max - $_G) / 6) + ($D / 2)) / $D; |