From a368be4dfb3c1f75f6bcfdc297fe0372fb5f6092 Mon Sep 17 00:00:00 2001 From: Genny Date: Mon, 8 Mar 2021 21:02:50 -0600 Subject: Rename a few things --- src/color.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/color.rs (limited to 'src/color.rs') 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 -- cgit 1.4.1-3-g733a5