#wgpu #toolkit #2d #visualization #texture #color #transform

pittore

Simple toolkit for 2D visualization based on wgpu

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

Download history 126/week @ 2024-11-11 147/week @ 2024-11-18 278/week @ 2024-11-25 18/week @ 2024-12-02 10/week @ 2024-12-09

457 downloads per month

MIT/Apache

100KB
2K SLoC

Pittore

Crates.io API reference

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