A manager that handles both the PLTE and tRNS chunks, as they depend upon each other.
Palette
Add a color to the palette. Must be an RGBA color, even if we're not using tRNS (to do: fix that)
the index the color was added at.
Return the RGBA color at the index provided. If there is no tRNS chunk the color will always have an alpha value of 255.
The RGBA color at this index. If the color hasn't been specified it will come back as [0,0,0,255].
Get the palette index for an existing color.
The index of the color, or -1 if the color has not yet been added to the palette.
Generated using TypeDoc
A manager that handles both the PLTE and tRNS chunks, as they depend upon each other.
Palette