From 1a3b4bb72c4560d65c1aaff4ac85f190d2fb1a3a Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Tue, 15 Nov 2022 19:03:22 +0100 Subject: [PATCH] Fix rainfall overlay color --- src/planet_renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/planet_renderer.rs b/src/planet_renderer.rs index d2d8a50..2b41372 100644 --- a/src/planet_renderer.rs +++ b/src/planet_renderer.rs @@ -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) } }