darker backgronud
This commit is contained in:
parent
7dd728b7b9
commit
c5ddb6fc4f
1 changed files with 4 additions and 3 deletions
|
@ -67,9 +67,10 @@ impl LightingSetup {
|
||||||
|
|
||||||
let color = self.view.get(&Vector2::new(xf, yf));
|
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 red = (color.red() * 16.0) as u32;
|
||||||
let blue = (color.blue() * 32.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);
|
buffer[index as usize] = blue | (green << 8) | (red << 16);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue