From 4dfa8fa22bc70c96adc902ded4b8795cab061627 Mon Sep 17 00:00:00 2001 From: Genny Date: Tue, 6 Oct 2020 20:05:35 -0500 Subject: Initial commit Messy code, but it bloody works! Well, the tests don't fail, which is a great start! --- src/common/mod.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/common/mod.rs (limited to 'src/common/mod.rs') 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 -- cgit 1.4.1-3-g733a5