about summary refs log tree commit diff
path: root/src/components/color.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/color.rs')
-rw-r--r--src/components/color.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/color.rs b/src/components/color.rs
new file mode 100644
index 0000000..dc134ef
--- /dev/null
+++ b/src/components/color.rs
@@ -0,0 +1,11 @@
+pub struct Color {
+	pub r: u8,
+	pub g: u8,
+	pub b: u8
+}
+
+impl Color {
+	pub fn new(r: u8, g: u8, b: u8) -> Self {
+		Self { r, g, b }
+	}
+}
\ No newline at end of file