@@ 1316-1316 (lines=1) @@ | ||
1313 | if ($comp < 0) $comp += 1.0; |
|
1314 | elseif ($comp > 1) $comp -= 1.0; |
|
1315 | ||
1316 | if (6 * $comp < 1) return $temp1 + ($temp2 - $temp1) * 6 * $comp; |
|
1317 | if (2 * $comp < 1) return $temp2; |
|
1318 | if (3 * $comp < 2) return $temp1 + ($temp2 - $temp1)*((2/3) - $comp) * 6; |
|
1319 | ||
@@ 1318-1318 (lines=1) @@ | ||
1315 | ||
1316 | if (6 * $comp < 1) return $temp1 + ($temp2 - $temp1) * 6 * $comp; |
|
1317 | if (2 * $comp < 1) return $temp2; |
|
1318 | if (3 * $comp < 2) return $temp1 + ($temp2 - $temp1)*((2/3) - $comp) * 6; |
|
1319 | ||
1320 | return $temp1; |
|
1321 | } |