Fix invalid gradient in ppdgauge

This commit is contained in:
Kak2X 2023-08-06 22:14:23 +02:00 committed by GitHub
parent 47be4dcd5e
commit 1ae559f107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@
$cx = ($i) / 25 * 255;
$cc = imagecolorallocate($image, 255, $cx, 0);
} elseif ($i <= 49) {
$cx = ($i - 75) / 25 * 127;
$cx = ($i - 25) / 25 * 127;
$cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx);
} elseif ($i <= 74) {
$cx = ($i - 50) / 25 * 31;