1.2.1 • Published 10 years ago

pbm2canvas v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

pbm2canvas

A JavaScript library to convert Netpbm images to canvas.

Currently supporting P1 (black and white) and P2 (grayscale).

Usage

import pbm2canvas from 'pbm2canvas'

let pbm = `P1
# example for pbm2canvas
5 5
1 0 0 0 1
0 1 0 1 0
0 0 1 0 0
0 1 0 1 0
1 0 0 0 1
`

let canvas = pbm2canvas(pbm)
document.body.appendChild(canvas)
1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago