Palette
ase.Palette (Class)
Static Members
Default palette used by Aseprite when a new file is created
Create a palette from an array of RGBA values
Create palette from Palette Chunk (0x2019)
Create palette from Old Plaette Chunk (0x0004)
Instance Members
Deprecated: No reason to use this. First index will always be 0
Deprecated: No reason to use this. Last index will alway equal to entries.length - 1
getEntry(index: Int): PaletteEntry
Deprecated: One can just use palette.entries[index]
instead
Creates the Old Palette Chunk (0x0004) if there are fewer than 256 colors
in the palette and no alpha channel (all alpha values are 0xff). Otherwise,
creates the Palette Chunk (0x2019).
Private Members