1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! > vizz a vi
//!
//! # Red Circle
//! ```
//! use vizzavi::backend::bitmap::*;
//!
//! let mut figure = Figure::new();
//! figure.set_xlim([0., 400.]);
//! figure.set_ylim([0., 300.]);
//!
//! let circle = Circle {
//! middle: [150., 200.].into(),
//! radius: 30.,
//! color: [200, 0, 0],
//! };
//! figure.add_element(circle);
//!
//! figure.save_image([400, 300], "figures/red-circle.png")?;
//! # Ok::<(), ErrorTypes>(())
//! ```
//!
//! <img src="https://raw.githubusercontent.com/jonaspleyer/vizz/refs/heads/main/figures/red-circle.png">
// #![warn(missing_docs)]
pub type Result<T> = Result;