atkinson

0.0.2 • Public • Published

Node v22.

$ npm -g i atkinson
$ atkinson file.jpg > 1.png

index.js contains a function that takes an ImageData object & modifies it in-place.

$ npm i atkinson

then

import {dithering} from 'atkinson'

let imagedata = ctx.getImageData(0, 0, img.width, img.height)
ctx.putImageData(dithering(imagedata), 0, 0)

♲ Loicense

MIT

Package Sidebar

Install

npm i atkinson

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

4.77 kB

Total Files

4

Last publish

Collaborators

  • gromnitsky