about summary refs log tree commit diff
path: root/src/color.rs
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2021-03-08 21:02:50 -0600
committerGenny <gen@nyble.dev>2021-03-08 21:02:50 -0600
commita368be4dfb3c1f75f6bcfdc297fe0372fb5f6092 (patch)
tree73c85d0abc2b065d827beea5f69f28a93d74816a /src/color.rs
parentc54872f011c135bbbc963f4a2b6b1d8ee4fa92bc (diff)
downloadgifed-a368be4dfb3c1f75f6bcfdc297fe0372fb5f6092.tar.gz
gifed-a368be4dfb3c1f75f6bcfdc297fe0372fb5f6092.zip
Rename a few things
Diffstat (limited to 'src/color.rs')
-rw-r--r--src/color.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/color.rs b/src/color.rs
new file mode 100644
index 0000000..dc134ef
--- /dev/null
+++ b/src/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