superguigui / limonade

Very minimal cli tool to generate sprite sheets for animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

experimental

limonade

Very minimal cli tool to generate sprite sheets for animations.

Installation

npm install limonade -g

Usage

From terminal or npm script.

Usage:
  limonade [input] [output]

Params:
  input   input folder to be scanned for images
  output  output folder where the spritesheet will be saved

Options:
  -h, --help        show help
  -v, --version     show version
  -f, --filename    name of the spritesheet without extension
  -a, --algorithm   packing algorithm: `square`, `horizontal` or `vertical`

NPM scripts

You can also make use of npm scripts and install a local version to tour project:

npm install limonade --save-dev

And in package.json:

"scripts": {
  "sprite": "limonade assets/images/sprites/mario assets/images/sprites -f mariosprite"
}

What it does

  • It will pack a bunch of images together for animation purpose.
  • It will work with jpg, png of gifs.
  • It always order the images alphanumerically.
  • It will only work if all images are the same size.

What it doesn't do

  • It won't try to fill the blanks.
  • It doesn't generate css or json files.

About

Very minimal cli tool to generate sprite sheets for animations.

License:ISC License


Languages

Language:JavaScript 100.0%