Adapt the plotter example to the SharedImageBuffer API removal

This commit is contained in:
Simon Hausmann 2021-08-10 10:06:09 +02:00 committed by Simon Hausmann
parent 42ba8ba7b0
commit 485fc72d15

View file

@ -65,7 +65,7 @@ fn render_plot(pitch: f32) -> sixtyfps::Image {
drop(chart);
drop(root);
sixtyfps::SharedImageBuffer::RGB8(pixel_buffer).into()
sixtyfps::Image::new_rgb8(pixel_buffer)
}
#[cfg_attr(target_arch = "wasm32", wasm_bindgen(start))]