Small change

This commit is contained in:
Ne_Eo
2024-09-18 15:26:12 +02:00
parent 409cc588cf
commit 79bdccb985
+1 -1
View File
@@ -51,7 +51,7 @@ final class BitmapUtil {
for(y in 0...bmap.height) {
for(x in 0...bmap.width) {
color = bmap.getPixel32(x, y);
fixedColor = 0xFF000000 + (color % 0x1000000);
fixedColor = 0xFF000000 | (color & 0xFFFFFF);
if (!colorMap.exists(fixedColor))
colorMap[fixedColor] = 0;
colorMap[fixedColor] += color.alphaFloat * 0.33 + (0.67 * (color.saturation * (2 * (color.lightness > 0.5 ? 0.5 - (color.lightness) : color.lightness))));