spritesmith
Advanced tools
Comparing version 0.19.1 to 0.19.2
# spritesmith changelog | ||
0.19.2 - Updated documentation for adding new engines. Fixes #44 | ||
0.19.1 - Added link to `gulp.spritesmith` via @hitautodestruct in #40 | ||
@@ -3,0 +5,0 @@ |
{ | ||
"name": "spritesmith", | ||
"version": "0.19.1", | ||
"version": "0.19.2", | ||
"description": "Utility that takes images and creates a spritesheet with JSON sprite data", | ||
@@ -5,0 +5,0 @@ "main": "src/smith.js", |
@@ -94,8 +94,15 @@ # Spritesmith [](https://travis-ci.org/Ensighten/spritesmith) | ||
### Adding new engines | ||
Example engines can be found in [src/engines](tree/master/src/engines). | ||
Engine specifications can be found in [spritesmith-engine-test][]. | ||
[spritesmith-engine-test]: https://github.com/twolfson/spritesmith-engine-test | ||
New engines can be added via `Spritesmith.addEngine(name, engine);`. | ||
If you decide to build a new engine, there are some utilities in [src/utils](tree/master/src/utils) which may be helpful. | ||
Some existing engines are: | ||
- [canvassmith](https://github.com/twolfson/canvassmith) | ||
- [pngsmith](https://github.com/twolfson/pngsmith) | ||
- [phantomjssmith](https://github.com/twolfson/phantomjssmith) | ||
- [gmsmith](https://github.com/twolfson/gmsmith) | ||
### Adding new packing algorithms | ||
@@ -102,0 +109,0 @@ Algorithms are maintained inside of [twolfson/layout](https://github.com/twolfson/layout/). Example algorithms can be found in [twolfson/layout/lib/algorithms](https://github.com/twolfson/layout/tree/master/lib/algorithms). |
389828
186