6 releases
new 0.2.2 | Dec 20, 2024 |
---|---|
0.2.1 | Dec 19, 2024 |
0.1.3 | Nov 28, 2024 |
#245 in Graphics APIs
457 downloads per month
100KB
2K
SLoC
Pittore
Simple toolkit for 2D visualization based on wgpu.
This crate is under development, so breaking changes may be introduced.
Refer to the examples for usage.
Example
use pittore::prelude::*;
struct App;
impl PittoreApp for App {
fn update(c: &mut Context) {
c.draw_circles([
Instance2d {
transform: Transform2d::from_xy(100.0, 200.0),
color: Color::RED,
..Default::default(),
}
]);
}
}
fn main() {
pittore::run("example", App);
}
Features
- Drawing basic shapes (rects, circles)
- Fast rendering with instancing
- Texture rendering
Dependencies
~12–47MB
~848K SLoC