1 unstable release
| 0.1.0 | Apr 20, 2019 |
|---|
#25 in #sprite-sheets
8KB
128 lines
Spriteron
Sprite simple command line application for generating ron files for Amethyst, because hand writing them is a pain.
Installation
Install using Cargo:
cargo install spriteron
Example
Assuming you have a spritesheet called spritesheet.png:
$ spriteron spritesheet.png generate -h 4 -v 4 -d horizontal
-h separates the file in 4 horizontal columns, and -v in 4 vertical rows.
-d sets the direction if the output to either vertical or horizontal. Useful if
your spritesheets contains animations.
By default the generated ron output will be printed to stdout, but it can easily be redirected using your standard stdout direction commands:
$ spriteron spritesheet.png generate -h 4 -v 4 -d horizontal > spritesheet.ron
Dependencies
~5MB
~84K SLoC