| Crates.io | sprite-gen |
| lib.rs | sprite-gen |
| version | 0.2.0 |
| created_at | 2018-01-16 20:50:13.987908+00 |
| updated_at | 2020-04-15 18:56:17.992414+00 |
| description | Procedurally generate pixel sprites library |
| homepage | https://github.com/tversteeg/sprite-gen |
| repository | https://github.com/tversteeg/sprite-gen.git |
| max_upload_size | |
| id | 47085 |
| size | 13,366 |
On Linux you need the gtk-rs dependencies to compile:
cargo install sprite
sprite
This should produce the following window:
![]()
A Rust library for procedurally generating 2D sprites. Port of https://github.com/zfedoran/pixel-sprite-generator
Add this to your Cargo.toml:
[dependencies]
sprite-gen = "0.1"
And this to your crate root:
extern crate sprite_gen;
On Linux you need the xorg-dev package as required by minifb -- sudo apt install xorg-dev
cargo run --example minifb
This should produce the following window:
