From 354a0cf4b2ec5b81425a356c6528170fa69e2c02 Mon Sep 17 00:00:00 2001 From: Juergen Stuber Date: Wed, 28 Nov 2018 18:54:10 +0100 Subject: [PATCH] Color walls brown. --- src/bin/maze/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/maze/main.rs b/src/bin/maze/main.rs index dfa6b15..f917a62 100644 --- a/src/bin/maze/main.rs +++ b/src/bin/maze/main.rs @@ -39,6 +39,9 @@ impl Color { fn magenta() -> Color { Color(255, 0, 255) } + fn brown() -> Color { + Color(165, 42, 42) + } fn complement(&self) -> Color { Color(255 - self.0, 255 - self.1, 255 - self.2) } @@ -61,7 +64,7 @@ fn send(w: &mut T, board: &Board) -> std::io::Result<()> { let Color(r, g, b) = match square { Square::Unknown => Color::black(), Square::Corridor => Color::yellow(), - Square::Wall => Color::blue(), + Square::Wall => Color::brown(), Square::Start => Color::red(), Square::Finish => Color::green(), };