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

Minor note about palette handling in encode #10

Open
jerch opened this issue Oct 25, 2019 · 1 comment
Open

Minor note about palette handling in encode #10

jerch opened this issue Oct 25, 2019 · 1 comment

Comments

@jerch
Copy link

jerch commented Oct 25, 2019

Here you state to reserve color slot 0 for transparent (aka background color):

nc := 255 // (>= 2, 8bit, index 0 is reserved for transparent key color)

Following the SIXEL spec in DEC STD 070 this is actually not needed, there is no link or notion in the spec of slot 0 being reserved for unencoded pixels. The addressable color slots are independent from the background color (thus you can use all 256 slots). The background color itself is something a device might provide by other means (prolly startup color or BCE).

@mattn
Copy link
Owner

mattn commented Jan 9, 2020

Can you show me your fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants