hqx

1.0.2 • Public • Published

hqx

hqx Pixel Art Scaling Algorithm for JavaScript/Canvas

This project is a fork of phoboslab/js-hqx, adding support to Node, through node-canvas.

Live example

CLI Usage

Install hqx:

npm install -g hqx

Run with input + scale ratio:

hqx test.png 2 > test-2x.png
hqx test.png 3 > test-3x.png
hqx test.png 4 > test-4x.png

Usage

var scaledCanvas = hqx( originalImage, 3 );

The second argument is the scaling factor. hqx supports 2, 3 and 4. See index.html for an example.

License

Please see LICENSE file.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i hqx

Weekly Downloads

1

Version

1.0.2

License

LGPL-2.1

Last publish

Collaborators

  • endel