Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for indexed palette support #10

Open
Rangi42 opened this issue Jun 4, 2020 · 2 comments
Open

Proposal for indexed palette support #10

Rangi42 opened this issue Jun 4, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Rangi42
Copy link
Owner

Rangi42 commented Jun 4, 2020

In the Image to Tiles dialog's Palette Format dropdown, add an Indexed choice. Then instead of outputting a grayscale tileset image and a separate palette file, it will output an indexed-color tileset image.

Edit: This has been implemented.

@Rangi42
Copy link
Owner Author

Rangi42 commented Jul 19, 2020

Independently of indexed palette output is indexed palette input. Have a checkbox like "Use indexed palette from input image", which will attempt to use the palettes defined in the index. (Multiple palettes would just be sequential, e.g. in GBA format, palette 0 uses colors 0-15, palette 1 uses colors 16-31, etc. And in GBC, palette 0 uses colors 0-3, palette 1 uses colors 4-7, etc.) If a tile doesn't fit any palette (for instance, it's technically possibly for one tile to use unique colors from two palettes, because it's all one index), then warn about it just like with the "too many colors in tile (X, Y)" warnings.

Edit: A palette could also be inputted from a separate file (JASC, PAL, etc) although this would require parsing those file formats.

@frozenLake
Copy link

It also would be nice to be able to load a series of palettes from a binary file, that automatically switches display based on the palette number in cases like the GBA format.

@Rangi42 Rangi42 added the enhancement New feature or request label Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants