pome(granate) a cli helper that create sprite image and output the raw offset information.
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)
$> npm install -g pomeg
$> pome ./js_images ./sprite.png
enjoy it