implemented keymap struct

This commit is contained in:
vextrixes committed 2026-06-03 22:06:59 +02:00
1 parent be70eb95ee
commit 07477e9d58
4 files changed
+48 -5

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
pub struct Rgb {
pub red: u8,
pub green: u8,
pub blue: u8,
}
impl Rgb {
pub fn to_array(self) -> [u8; 3] {
[self.red, self.green, self.blue]
}
}