/pome

a cli helper that create sprite image and output the raw offset information.

Primary LanguageJavaScriptMIT LicenseMIT

pome

pome(granate) a cli helper that create sprite image and output the raw offset information.

usage

module

read all images in ./js_images and write a sprite image file named sprite.png.

const Pome = require('pomeg')

let task = new Pome('./js_images', {
    padding: 0,
    order: 'binary-tree'
})
let {sourceMap} = task.sprite('./sprite.png')
console.info(sourceMap)

CLI

$> npm install -g pomeg
$> pome ./js_images ./sprite.png

enjoy it