Asset manager refactor begin.

This commit is contained in:
2025-09-01 21:00:50 -05:00
parent 3e61d6f84d
commit 14c41d33a7
17 changed files with 206 additions and 20 deletions

View File

@@ -13,7 +13,7 @@ def extractPaletteFromImage(image):
pixels = list(image.getdata())
uniqueColors = []
for color in pixels:
# We treat alpha 0 as rgba(0,0,0,0) for palette purposes
# We treat all alpha 0 as rgba(0,0,0,0) for palette purposes
if color[3] == 0:
color = (0, 0, 0, 0)
if color not in uniqueColors: