Files
gk1000-controller/src/color.rs
T

12 lines
198 B
Rust
Raw Normal View History

2026-06-06 16:05:46 +02:00
#[derive(Default)]
2026-06-06 16:07:34 +02:00
pub struct Color {
2026-06-03 22:06:59 +02:00
pub red: u8,
pub green: u8,
pub blue: u8,
}
2026-06-06 16:07:34 +02:00
impl Color {
2026-07-04 10:08:51 +02:00
pub fn to_array(&self) -> [u8; 3] {
2026-06-03 22:06:59 +02:00
[self.red, self.green, self.blue]
}
}