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

Weird behaviour with transparent pixels in rgbgfx #618

Closed
matanui159 opened this issue Dec 8, 2020 · 1 comment · Fixed by #981
Closed

Weird behaviour with transparent pixels in rgbgfx #618

matanui159 opened this issue Dec 8, 2020 · 1 comment · Fixed by #981
Labels
bug Unexpected behavior / crashes; to be fixed ASAP! rgbgfx This affects RGBGFX
Milestone

Comments

@matanui159
Copy link

I've been using rgbgfx to generate graphics data and palettes from PNGs. In the documentation it says that "Transparent pixels are set to palette index 0." However, I quickly noticed that it does not uniquely set them as palette index 0. If there is a color bright enough it will also be given palette index 0 creating transparent pixels in the sprite. The only solution I've found is to set the background to white instead of transparent but its not a perfect solution.

Can there at least be a flag to change this behaviour such that if there is transparency and 3 other colors, it uses transparency for color index 0 and uses the colors for indices 1-3?

@ISSOtm
Copy link
Member

ISSOtm commented Dec 9, 2020

Well, fixing this would fall under the scope of the planned RGBGFX rewrite... it's poorly written, and needs a lot of behavior changes. I'm sorry to say that this is a bug you'll have to live with for now... until someone finds enough motivation and time to re-do RGBGFX essentially from scratch. :/

@ISSOtm ISSOtm added bug Unexpected behavior / crashes; to be fixed ASAP! rgbgfx This affects RGBGFX labels Dec 9, 2020
@ISSOtm ISSOtm mentioned this issue May 7, 2022
13 tasks
@Rangi42 Rangi42 added this to the 0.6.0 milestone Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior / crashes; to be fixed ASAP! rgbgfx This affects RGBGFX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants