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.
let width = 1920;
let height = 1080;
let mut device = new.unwrap;
let mut bitmap = device.bitmap_target.unwrap;
let mut render_ctx = bitmap.render_context;
let piet_backend = PietBackend ;
let root = piet_backend.into_drawing_area;
do_some_plotters_stuff;
bitmap.save_to_file.unwrap;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.