cleanpal v1.7.1 realtime pal0 duplicate / similar colour cleaner USAGE cleanpal [input] Opens the GUI. With an input file it loads straight into the viewer, otherwise use the Open button. INPUTS (pal0 = the first 256 colours) .wad WAD containing a PLAYPAL lump .pal SLADE playpal.pal (N x 768 bytes) or pal0.pal (768 bytes) .png SLADE pal0.png 16x16 grid (128x128 or scaled square) DoomTools playpal.png 256x14, row 0 COLORMAP image 256x34, line 0 MATCHING (runs in order) 1. Remove exact exact RGB copies removed, first occurrence kept 2. Remove similar works on what stage 1 left; transitive clusters, lowest index kept. CIEDE2000 (default 1.5), CIE Lab dE76 (2.0) or weighted RGB (1.1) Align packs kept colours toward index 0 EXPORTS DoomTools playpal.png 256x14, Doom red / gold / green tints DoomTools blank playpal.png 256x14, pal0 in every row SLADE pal0.png 128x128 grid SLADE pal0.pal 768 bytes SLADE playpal.pal 14 x 768 bytes, tinted Analysis PNGs -identical- / -simular- / -aligned- (+ split) Removed / empty slots: transparent in PNGs, green (0,255,0) in .pal SETTINGS Saved on exit to %APPDATA%\cleanpal\cleanpal_settings.json. Save / Load preset buttons store matching + export setups as .json (default folder %APPDATA%\cleanpal\presets). EXAMPLES cleanpal open empty, pick a file cleanpal PLAYPAL.png DoomTools playpal / SLADE pal0.png cleanpal doom2.wad pal0 from the PLAYPAL lump cleanpal "D:\Pal0\playpal.pal" SLADE binary palette