mirror of
https://github.com/kettek/png-js
synced 2025-03-14 06:24:30 -07:00
Update README
This commit is contained in:
parent
f2dc21a3e1
commit
d05c43904f
|
@ -1,6 +1,8 @@
|
||||||
# png-js
|
# 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.
|
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
|
## Usage
|
||||||
The following shows the process of loading a PNG file and rendering it to a canvas with its palette data reversed.
|
The following shows the process of loading a PNG file and rendering it to a canvas with its palette data reversed.
|
||||||
|
|
||||||
|
@ -94,4 +96,4 @@ let clip = {
|
||||||
w: 32,
|
w: 32,
|
||||||
h: 32,
|
h: 32,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user