1
0
mirror of https://github.com/kettek/png-js synced 2025-03-14 06:24:30 -07:00

Update README

This commit is contained in:
kts of kettek (Gliese) 2019-01-23 18:20:54 -08:00
parent f2dc21a3e1
commit d05c43904f

View File

@ -1,6 +1,8 @@
# png-js
This is a modified version of [png.js](https://github.com/react-pdf/png.js) that is intended to be used for palette swapping within the browser.
**NOTE**: Only supports indexed PNGs for obvious reasons. All others will cause IndexedPNG to throw during construction.
## Usage
The following shows the process of loading a PNG file and rendering it to a canvas with its palette data reversed.