Fix rainfall overlay color
This commit is contained in:
parent
b8fb3a6049
commit
1a3b4bb72c
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ fn rainfall_color(rainfall: f32) -> Color {
|
|||
if rainfall <= 0.0 {
|
||||
Color::BLACK
|
||||
} else {
|
||||
Color::rgb(rainfall / World::MAX_RAINFALL, 0.0, 0.0)
|
||||
Color::rgb(0.0, rainfall / World::MAX_RAINFALL, 0.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue