egermano / stylus-spriting

Sprite generator with stylus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylus-spriting

Sprite generator with stylus

Instalation

npm install stylus-spriting -g

To use you must install the dependencies.

The GM Library is the only dependence that can't be installed with a npm.

GM (Graphics Magick)

Installing a GM Library.

MAC OSX

To install I used a homebrew tool. For more instruction of installation go to GM Site.

$ brew update
$ brew install graphicsmagick

Usage

To use you need do like that:

$ stylus-spriting --help

Usage: stylus-spriting path/to/images/*.png [options]

Options:

-h, --help               output usage information
-V, --version            output the version number
--image <file>           Name for output image.
--stylus <file>          Name for output stylus.
--class-prefix <string>  Class prefix for stylus.
--debug <boolean>        Debugger mode.

About

Sprite generator with stylus


Languages

Language:JavaScript 100.0%