sb_rust_library/plotter/
color.rs

1use image::Rgb;
2
3/// A 32-bit color used for plotting.
4pub type Color = Rgb<u8>;
5
6/// A nice looking red.
7pub const RED: Color = Rgb([243, 97, 97]);
8/// A nice looking orange.
9pub const ORANGE: Color = Rgb([247, 184, 85]);
10/// A nice looking yellow.
11pub const YELLOW: Color = Rgb([243, 243, 97]);
12/// A nice looking green.
13pub const GREEN: Color = Rgb([150, 217, 77]);
14/// A nice looking blue.
15pub const BLUE: Color = Rgb([129, 196, 238]);
16/// A nice looking purple.
17pub const PURPLE: Color = Rgb([151, 93, 201]);
18/// A nice looking pinkish.
19pub const PINK: Color = Rgb([221, 95, 114]);
20/// A nice looking white.
21pub const WHITE: Color = Rgb([255, 255, 255]);
22/// A nice looking black.
23pub const BLACK: Color = Rgb([0, 0, 0]);
24/// A nice looking mauve.
25pub const MAUVE: Color = Rgb([199, 171, 175]);
26/// A nice looking greyish.
27pub const GREY: Color = Rgb([226, 215, 216]);