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

pittore

Simple toolkit for 2D visualization based on wgpu

8 releases

0.2.4 Dec 24, 2024
0.2.3 Dec 22, 2024
0.1.3 Nov 28, 2024

#164 in Graphics APIs

Download history 72/week @ 2024-11-05 55/week @ 2024-11-12 147/week @ 2024-11-19 279/week @ 2024-11-26 16/week @ 2024-12-03 10/week @ 2024-12-10 419/week @ 2024-12-17 183/week @ 2024-12-24

612 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–48MB
~825K SLoC