about summary refs log tree commit diff
path: root/src/common
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2020-10-06 20:05:35 -0500
committerGenny <gen@nyble.dev>2020-10-06 20:05:35 -0500
commit4dfa8fa22bc70c96adc902ded4b8795cab061627 (patch)
treef91c81926cbf339016f331c59b4390a63a129869 /src/common
downloadgifed-4dfa8fa22bc70c96adc902ded4b8795cab061627.tar.gz
gifed-4dfa8fa22bc70c96adc902ded4b8795cab061627.zip
Initial commit
Messy code, but it bloody works! Well, the tests don't fail, which is
a great start!
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs
new file mode 100644
index 0000000..1080e29
--- /dev/null
+++ b/src/common/mod.rs
@@ -0,0 +1,20 @@
+pub enum Version {
+	Gif87a,
+	Gif89a
+}
+
+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