0.2.0 • Published 8 months ago

@zombrodo/tim-parser v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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-parser

Usage

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());
}
0.2.0

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago