Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 539 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 539 Bytes

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