OptionalcompressOptional flag whether to compress the pixel data using LZ4. Defaults to false.
The height of the sprite in pixels.
The number of colors in the sprite's palette.
The palette data as a flat Uint8Array of RGB values.
The pixel data as a Uint8Array of palette indices.
The width of the sprite in pixels.
Options for creating a TxSprite instance.