UNPKG

js-hqx

Version:

javascript & canvas pixel art scaling algorithm

22 lines (13 loc) 363 B
# Introduction This is a JavaScript module port of [js-hqx](https://github.com/phoboslab/js-hqx) which has exactly the same API but is now usable as a node module. # Installation ``` npm i -S js-hqx ``` # Usage ``` import hqx from 'js-hqx'; const scaledCanvas = hqx(originalImage, 3); ``` # Example & Tests See the `test` directory for a browser example.