The 16 colors (In RGBA format) used by the game graphics.
Transparent RGBA color.
Creates a canvas with the given optional size. In Node.js a node-canvas is created and returned.
Optional width in pixels.
Optional height in pixels.
The created canvas.
Creates and returns a new HTML image element. In Node.js the special image implementation of node-canvas is returned instead.
The created HTML image element.
Decodes huffman encoded data read from the given reader and returns the decoded data.
The reader to read the encoded data from. The current position of the reader must point to the beginning of the huffman tree. After decoding the reader position is set to the next full byte after the encoded data.
The number of bytes to decode. Defines the size of the returned array.
The decoded data.
Decodes a vertical xor encoded data block.
The array containing the data to decode.
The line width in bytes (not pixels) for decoding.
The number of bytes to decode.
Optional start offset in the data array to decode. Defaults to 0.
A new array with the decoded bytes.
Decodes a vertical xor encoded data block inplace.
The array containing the data to decode.
The line width in bytes (not pixels) for decoding.
The number of bytes to decode.
Optional start offset in the data array to decode. Defaults to 0.
Reference to the passed data array now containing the decoded bytes.
Generated using TypeDoc
A type for wasteland filenames to ensure they are all written correctly.