Nine Pedestrians Mesmerized

    pixel-sprite-generator-nodejs

    1.0.3 • Public • Published

    GitHub package.json version David License Build Status GitHub repo size

    pixel-sprite-generator-nodejs

    Create procedural 2D creatures in .png files.

    Adaptation of this front javascript app for nodejs : https://github.com/zfedoran/pixel-sprite-generator

    alt text


    npm install pixel-sprite-generator-nodejs

    /!\ Follow theses instructions for the required Canvas module /!\

    https://github.com/Automattic/node-canvas


    Usage :

    const pixelMaker = require('pixel-sprite-generator-nodejs')
    const outputDirectory = './sprite/'
     
    const sprite = pixelMaker.createCreature(outputDirectory, (name) => {
            console.log(`Random creature ${outputDirectory}${name} created`)
        });
     

    Or

    const dragon = pixelMaker.createCreature(outputDirectory, (name) => {
            console.log(`Dragon sprite created in ${outputDirectory}${name}`)
        }, pixelMaker.masks.dragon);
     

    Install

    npm i pixel-sprite-generator-nodejs

    DownloadsWeekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    28.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar