1.0.0 • Published 7 years ago
pomeg v1.0.0
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 generate a sprite image 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
1.0.0
7 years ago