Fix rainfall overlay color

This commit is contained in:
Tobias Berger 2022-11-15 19:03:22 +01:00
parent b8fb3a6049
commit 1a3b4bb72c
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

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