diff options
author | Genny <gen@nyble.dev> | 2020-10-06 20:05:35 -0500 |
---|---|---|
committer | Genny <gen@nyble.dev> | 2020-10-06 20:05:35 -0500 |
commit | 4dfa8fa22bc70c96adc902ded4b8795cab061627 (patch) | |
tree | f91c81926cbf339016f331c59b4390a63a129869 /src/common | |
download | gifed-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.rs | 20 |
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 |