sprite-gen

Crates.iosprite-gen
lib.rssprite-gen
version0.2.0
sourcesrc
created_at2018-01-16 20:50:13.987908
updated_at2020-04-15 18:56:17.992414
descriptionProcedurally generate pixel sprites library
homepagehttps://github.com/tversteeg/sprite-gen
repositoryhttps://github.com/tversteeg/sprite-gen.git
max_upload_size
id47085
size13,366
Thomas Versteeg (tversteeg)

documentation

https://docs.rs/sprite-gen

README

CI

sprite (Executable)

Cargo License: GPL-3.0 Downloads

Run

On Linux you need the gtk-rs dependencies to compile:

cargo install sprite
sprite

This should produce the following window:

Sprite

sprite-gen (Library)

A Rust library for procedurally generating 2D sprites. Port of https://github.com/zfedoran/pixel-sprite-generator

Cargo License: GPL-3.0 Downloads

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:

Example

Commit count: 122

cargo fmt