From c54872f011c135bbbc963f4a2b6b1d8ee4fa92bc Mon Sep 17 00:00:00 2001 From: Genny Date: Fri, 6 Nov 2020 23:33:01 -0600 Subject: Add gif components --- src/components/color.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/components/color.rs (limited to 'src/components/color.rs') 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 -- cgit 1.4.1-3-g733a5