Plotters Piet

A Piet backend for Plotters. This lets you draw plots on a Piet render context.

Currently the piet dependency is at 0.3 because that's what druid depends on. The code is almost compatible with piet 0.4 and 0.5, required changes are listed in comments in the code.

Example

Note that so far this has only been tested with piet-cairo.

```rust let width = 1920; let height = 1080;

let mut device = Device::new().unwrap(); let mut bitmap = device.bitmaptarget(width, height, 1.0).unwrap(); let mut renderctx = bitmap.render_context();

let pietbackend = PietBackend { size: (width as u32, height as u32), renderctx: &mut render_ctx, };

let root = pietbackend.intodrawingarea(); dosomeplottersstuff(&root);

bitmap.savetofile("plot.png").unwrap(); ```

License

Licensed under either of

at your option.