aseprite

Crates.ioaseprite
lib.rsaseprite
created_at2017-04-25 20:53:17.657922
updated_at2017-08-02 14:52:22.704919
descriptionA crate to load files from the aseprite sprite editor.
homepage
repositoryhttps://github.com/ggez/aseprite
max_upload_size
id12015
Thomas Versteeg

documentation

https://docs.rs/aseprite

README

# aseprite A crate for loading data from the [aseprite](https://www.aseprite.org/) sprite editor. Should go along well with the [tiled](https://github.com/mattyhall/rs-tiled) crate, I hope! It does not load any actual images, just the metadata. Currently it only loads aseprite's JSON export format, and only when exported in the "json-array" format (which isn't the default for some reason but appears much more sensible than the alternative). Automatically exporting a sprite to a given format is documented here: # Docs Documentation is on [docs.rs](https://docs.rs/aseprite/0.1.1/aseprite/) # Example Export sprite sheet with: ``` aseprite -b boonga.ase --sheet boonga.png --format json-array --list-tags --list-layers --data boonga.json ``` Then write a program to load it: ```rust extern crate serde_json; extern crate aseprite; use std::fs::File; fn main() { let file = File::open("boonga.json").unwrap(); let spritesheet: aseprite::SpritesheetData = serde_json::from_reader(file).unwrap(); println!("Spritesheet is {:?}", spritesheet); } ```
Commit count: 24

cargo fmt