11 releases
0.2.0 | Apr 15, 2020 |
---|---|
0.1.9 | Feb 25, 2020 |
0.1.4 | Jan 23, 2018 |
#363 in Rendering
Used in 3 crates
12KB
220 lines
sprite (Executable)
Run
On Linux you need the gtk-rs dependencies to compile:
cargo install sprite
sprite
This should produce the following window:
sprite-gen (Library)
A Rust library for procedurally generating 2D sprites. Port of https://github.com/zfedoran/pixel-sprite-generator
Documentation
Usage
Add this to your Cargo.toml
:
[dependencies]
sprite-gen = "0.1"
And this to your crate root:
extern crate sprite_gen;
Run the example
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:
Dependencies
~34KB