mriale / PyDPainter

A usable pixel art paint program written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support HAM and 24-bit IFF files

mriale opened this issue · comments

Use the default Pygame loader for HAM and 24-bit IFF files. This returns a 24-bit image which is then converted down to an 8-bit image for PyDPainter to use.

Works fine !
If loaded as ANIMATION, add a request to ask if we want fixed palette or not.
If fixed palette, load the first 1/3 frame as reference for palette conversion. Most animation don't show all on first frame. Objets or titles appears later after some fading.

IE: you have a 100 frames animation. Palette on frame 33 or 66 are good samples to create a palette. Palette in frame 1 is 99% chance to be all black.