about summary refs log tree commit diff
path: root/src/color.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.rs')
-rw-r--r--src/color.rs46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/color.rs b/src/color.rs
index dd96280..e18ce58 100644
--- a/src/color.rs
+++ b/src/color.rs
@@ -1,38 +1,38 @@
 #[derive(Copy, Clone, Debug, PartialEq)]
 pub struct Color {
-    pub r: u8,
-    pub g: u8,
-    pub b: u8,
+	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 }
-    }
+	pub fn new(r: u8, g: u8, b: u8) -> Self {
+		Self { r, g, b }
+	}
 }
 
 impl From<[u8; 3]> for Color {
-    fn from(arr: [u8; 3]) -> Self {
-        Self {
-            r: arr[0],
-            g: arr[1],
-            b: arr[2],
-        }
-    }
+	fn from(arr: [u8; 3]) -> Self {
+		Self {
+			r: arr[0],
+			g: arr[1],
+			b: arr[2],
+		}
+	}
 }
 
 impl From<(u8, u8, u8)> for Color {
-    fn from(t: (u8, u8, u8)) -> Self {
-        Self {
-            r: t.0,
-            g: t.1,
-            b: t.2,
-        }
-    }
+	fn from(t: (u8, u8, u8)) -> Self {
+		Self {
+			r: t.0,
+			g: t.1,
+			b: t.2,
+		}
+	}
 }
 
 impl Into<[u8; 3]> for Color {
-    fn into(self) -> [u8; 3] {
-        [self.r, self.g, self.b]
-    }
+	fn into(self) -> [u8; 3] {
+		[self.r, self.g, self.b]
+	}
 }