mriale / PyDPainter

A usable pixel art paint program written in Python
GNU General Public License v3.0
551 stars 26 forks source link

fix 64 palettes #155

Closed hsk closed 2 months ago

hsk commented 2 months ago
スクリーンショット 2024-09-03 20 42 19

The palette display in 64 colours or more mode has been changed.

mriale commented 2 months ago

In Lores NTSC 256 color mode, the colors in the palette below the toolbox are 2 pixels high and there is space at the bottom below the palette pager. This makes the colors tiny to click on. Not sure the integer math works out right here. Not sure fractional math is right either because then some color boxes would be bigger than others.

I do like the look in 64 color mode. It looks like DPaint III did halfbrite mode back in the day.

Maybe only make this work for 64 colors and then revert back to 32 per page when paging (128 and 256 colors)?

mriale commented 2 months ago

Looking at DPaint V, it uses 64 colors and has a palette pager and enough vertical pixels. However, the color swatch above the palette is a rectangle instead of a circle. I think that gives a few more vertical pixels to work with.

mriale commented 2 months ago

Merging to develop to work on further.

@hsk Thanks for your contribution. I'll figure out how to make it work in NTSC lores 256 color mode.