Commit graph

7 commits

Author SHA1 Message Date
Simon Hausmann
92655486da Simplify plotter example
Use a callback that produces the plot from a pitch as the image source.
2021-08-11 17:13:21 +02:00
Simon Hausmann
8903adb584 Add a WASM build of the plotters example
... which uses an intermediate drawing backend to skip the text on the axis, as
that requires TrueType fonts form the filesystem.
2021-08-11 16:19:10 +02:00
Simon Hausmann
0be0e07116 Fix build
Amends commit 0852a7661b
2021-08-10 17:30:30 +02:00
Simon Hausmann
d023475f1c Rename Image::new_rgb*() to Image::from_rgb* 2021-08-10 15:56:01 +02:00
Simon Hausmann
50f4b08b6e Remove imgref and rgb dependencies from the plotter example
With `as_bytes_mut()` on `SharedPixelBuffer` those dependencies are not needed anymore,
they are now implicit.
2021-08-10 15:56:01 +02:00
Simon Hausmann
485fc72d15 Adapt the plotter example to the SharedImageBuffer API removal 2021-08-10 15:56:01 +02:00
Simon Hausmann
1d83837228 Add a plotter example using plotters
This is kind of an interactive port of
https://github.com/38/plotters/blob/master/examples/3d-plot2.rs
2021-08-10 15:56:01 +02:00