Skip to content

Minor note about palette handling in encode #10

@jerch

Description

@jerch

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions