mriale / PyDPainter

A usable pixel art paint program written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color change / Remap

Sleuthgame opened this issue · comments

hi ! I'm not sure how this function works.

I believe it enable to remap colors after I re-organize colors in Palette. But it appears it behave strangely for my understanding.
Can you check this or explain it to me ?

I think it's working. If I load RaytracedLoRes.iff:
Screenshot_20230809_214410

If I do default palette:
Screenshot_20230809_214542

I get:
Screenshot_20230809_214630

If I do a remap:
Screenshot_20230809_214654

I get:
Screenshot_20230809_214822
It doesn't cycle like the original, but the image looks as good as it can with the default palette.

Were you expecting different or better functionality? I believe this is close to DPaint III behavior. Is it intuitive according to today's standards? Maybe not.

OK, thanks. I was expecting that, exactly what I remember of Dpaint too. But it does not work if I edit colors in Palette.
I will record a screenshot video, it will be easier to figure out what's happening.

OK, quite simple.
Load this PNG files from PhotoShop. Palette is messy. Shades of grey are not sorted (they are in PNG export but...)
image

test-AA-4

Re-organize colors. One Exchange, one gradient. Picture is now messy.
image

Use REMAP.
!!???
image

Turns out PyDPainter only backed up the original palette when loading IFF files. Since this was a PNG file, the original palette was never backed up. I changed the code so both are backed up now, and remap works as expected now. Thanks for finding that!

Thanks for fixing that.