@@ 1343-1343 (lines=1) @@ | ||
1340 | if ($comp < 0) $comp += 1.0; |
|
1341 | elseif ($comp > 1) $comp -= 1.0; |
|
1342 | ||
1343 | if (6 * $comp < 1) return $temp1 + ($temp2 - $temp1) * 6 * $comp; |
|
1344 | if (2 * $comp < 1) return $temp2; |
|
1345 | if (3 * $comp < 2) return $temp1 + ($temp2 - $temp1)*((2/3) - $comp) * 6; |
|
1346 | ||
@@ 1345-1345 (lines=1) @@ | ||
1342 | ||
1343 | if (6 * $comp < 1) return $temp1 + ($temp2 - $temp1) * 6 * $comp; |
|
1344 | if (2 * $comp < 1) return $temp2; |
|
1345 | if (3 * $comp < 2) return $temp1 + ($temp2 - $temp1)*((2/3) - $comp) * 6; |
|
1346 | ||
1347 | return $temp1; |
|
1348 | } |