Adds a palette chunk to the end of the main palette.
Clears an area of the palette with zeroes. Returns the original area.
Returns the given palette index.
Loads a palette into the object. Returns the new palette of the object.
Loads a palette chunk into the object. The offset determines where the palette should be loaded. If it points to an existing place, the indices after that will be overwritten until the whole palette will be copied. If it points to the end or after it, then the palette will be made longer, and will pad with values #00000000 if needed. Returns the new palette of the object.
Sets the given palette index to the given value.
Returns the palette of the object.
Defines palette handling functions. It provides various functions for safe palette handling.