0.2.0 • Published 2 years ago
@zombrodo/tim-parser v0.2.0
TIM Parser
A parser for the PSX TIM image format,
It has currently been tested with 4-bit CLUT images, and 8-bit CLUT images, however not exhaustively. If, in the process of using this, you find a bug, please open an issue with a test image so that I can fix.
Does not support parsing TIM files with the Mixed pmode.
Install
yarn add @zombrodo/tim-parserUsage
This library exposes one function, parse which takes in an ArrayBuffer and
returns a TimImage object.
import { parse } from "tim-parser";
function parseFile(blob: Blob) {
return parse(blob.arrayBuffer());
}