graphics-shapes 0.4.4

Shapes for graphics
Documentation
1
2
3
4
5
6
7
use graphics_shapes::rect::Rect;

fn main() {
    let rect = Rect::new((0, 0), (100, 20));
    let str = serde_json::to_string(&rect);
    println!("{}", str.unwrap());
}