| @@ 75-79 (lines=5) @@ | ||
| 72 | // echo "<hr>"; |
|
| 73 | // ext_echoArray($t10); |
|
| 74 | $max = $plancher; |
|
| 75 | for ($h = 1; $h <= 3; ++$h) { |
|
| 76 | if ($max < $t10[$h]) { |
|
| 77 | $max = $t10[$h]; |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| 81 | $increment = $plafond - $max; |
|
| 82 | ||
| @@ 128-132 (lines=5) @@ | ||
| 125 | $t10 = static::hexa2rgbA($colorHexa); |
|
| 126 | $max = 255; |
|
| 127 | ||
| 128 | for ($h = 1; $h <= 3; ++$h) { |
|
| 129 | if ($max > $t10[$h]) { |
|
| 130 | $max = $t10[$h]; |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||
| 134 | $increment = -$max; |
|
| 135 | ||