Skip to content

Commit

Permalink
Types in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Aug 5, 2017
1 parent d9cea6b commit c716f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ png.pack().pipe(fs.createWriteStream('my-file.png'))

## API

### SLP(buf)
### `SLP(buffer: Buffer)`

Creates an SLP graphic from a buffer.

### SLP#renderFrame(frameIndex, palette, { player }) → ImageData
### `SLP#renderFrame(frameIndex: number, palette: Palette, { player: number, drawOutline: boolean }): ImageData`

Renders a frame to an `[ r, g, b, a ]` ImageData object.

Expand Down

0 comments on commit c716f12

Please sign in to comment.