1.0.8 • Published 11 years ago

spritesheetjs v1.0.8

Weekly downloads
35
License
-
Repository
-
Last release
11 years ago

spritesheetjs

A fast node spritesheet generator

Install:

npm install spritesheetjs

Use:

var RectangleSheet = require('spritesheetjs');

var sheet = new RectangleSheet({
    source_dir: images_dir,
    rel_sprite_path: "", // in case your css file and sprite image are in different directories
    sprite_path: 'out/sprite.png',
    css_path: 'out/sprite.css'
});

sheet.spritesheet(function(css){
    // css is an array of elements
    // {
    //  name: image/element name
    //  width,
    //  height,
    //  x,
    //  y
    // }
});
1.0.8

11 years ago

1.0.7

11 years ago

1.0.6

11 years ago

1.0.5

11 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.0

11 years ago