mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 06:38:44 +00:00
With a fixed palette (Custom table), the colors listed in colorTable.transparent all become the one transparent entry, so together they now take a single slot of Colors, and the opaque colors fill the remaining slots in palette order. Before, the palette was cut to its first entries; when those were all mapped to transparent, every opaque pixel took one of them and the whole image turned transparent, and with a deleted color the export was refused although an opaque color was left past the cut. The check that a deletion leaves an opaque color now reads the whole palette. When no pixel is transparent and no pixel takes a color mapped to transparent, that slot goes to the next opaque color. At 256 colors one entry stays for a color mapped to transparent.