pixel-sort

A library for creating pixel art with node.js

Usage no npm install needed!

<script type="module">
  import pixelSort from 'https://cdn.skypack.dev/pixel-sort';
</script>

README

pixel-sort

MIT license Dependency Status npm

pixel-sort is a library for creating pixel art with node.js.

Table of contents

Installation

yarn add pixel-sort

Examples

Input

const { Sorter } = require('pixel-sort');
const sorter = new Sorter();

(async () => {
    // load an image
    await sorter.load('./input.png');

    // apply some filters
    await sorter.lightsort({
        direction: 'LTR'
    });

    // save the image
    await sorter.save('./output.png');
})();

Output

License

pixel-sort is licensed under the MIT License.

back to top