11个版本
| 0.2.0 | 2020年4月15日 |
|---|---|
| 0.1.9 | 2020年2月25日 |
| 0.1.4 | 2018年1月23日 |
#362 in 渲染
在 3 个库中使用
12KB
220 行
精灵 (可执行文件)
运行
在Linux上编译需要满足gtk-rs的依赖项
cargo install sprite
sprite
这将产生以下窗口
![]()
sprite-gen (库)
一个用于生成2D精灵的Rust库。移植自https://github.com/zfedoran/pixel-sprite-generator
文档
用法
将其添加到您的 Cargo.toml
[dependencies]
sprite-gen = "0.1"
并将其添加到您的crate根目录
extern crate sprite_gen;
运行示例
在Linux上您需要安装xorg-dev包,这是由minifb需要的 -- sudo apt install xorg-dev
cargo run --example minifb
这将产生以下窗口
![]()
依赖项
~34KB