summary refs log tree commit diff
path: root/ascii-town-heatmap.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ascii-town-heatmap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ascii-town-heatmap.rs b/ascii-town-heatmap.rs
index fa818cf..8c8ae97 100644
--- a/ascii-town-heatmap.rs
+++ b/ascii-town-heatmap.rs
@@ -67,7 +67,7 @@ fn main() {
 
             let h = (1.0 - c) * 240.0;
             let s = c * 0.5 + 0.5;
-            let l = if c > 0.0 { c * 0.5 } else { 0.0 };
+            let l = if c > 0.0 { 0.5 } else { 0.0 };
 
             let (r, g, b) = hsl::HSL { h, s, l }.to_rgb();
             let rgb = image::Rgb([r, g, b]);