slam_cv/color.rs
1pub struct Colors;
2
3// Red, Green, Blue
4type RgbColor = [f32; 3];
5
6impl Colors {
7 pub const fn black() -> RgbColor {
8 [0.0, 0.0, 0.0]
9 }
10
11 pub const fn white() -> RgbColor {
12 [1.0, 1.0, 1.0]
13 }
14
15 pub const fn red() -> RgbColor {
16 [1.0, 0.0, 0.0]
17 }
18
19 pub const fn green() -> RgbColor {
20 [0.0, 1.0, 0.0]
21 }
22
23 pub const fn blue() -> RgbColor {
24 [0.0, 0.0, 1.0]
25 }
26}