darker backgronud

This commit is contained in:
Michael Sippel 2024-06-11 23:21:48 +02:00
parent 7dd728b7b9
commit c5ddb6fc4f
Signed by: senvas
GPG key ID: 060F22F65102F95C

View file

@ -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);
}