From c5ddb6fc4ff5b361f02afadb352a206d87e4a426 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Tue, 11 Jun 2024 23:21:48 +0200 Subject: [PATCH] darker backgronud --- src/setup.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/setup.rs b/src/setup.rs index d346ada..d7872e8 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -67,9 +67,10 @@ impl LightingSetup { let color = self.view.get(&Vector2::new(xf, yf)); - let red = (color.red() * 32.0) as u32; - let green = (color.green() * 32.0) as u32; - let blue = (color.blue() * 32.0) as u32; + + let red = (color.red() * 16.0) as u32; + let green = (color.green() * 16.0) as u32; + let blue = (color.blue() * 16.0) as u32; buffer[index as usize] = blue | (green << 8) | (red << 16); }