Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 322 Bytes

README.rst

File metadata and controls

21 lines (11 loc) · 322 Bytes

neschr

NES CHR decoder.

Usage

import neschr

PALETTE = ( 0x00, 0x27, 0x21, 0x30 )

decoder = neschr.TileDecoder()
tile  = decoder.read_tile      (buf_one,   PALETTE) # one tile  (  16 Bytes)
tiles = decoder.read_tile_table(buf_table, PALETTE) # 256 tiles (4096 Bytes)