From 2484d15802320b59c27c53560a045d1637748681 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 29 Aug 2017 14:34:36 -0400 Subject: Don't vary L Oops I didn't mean to commit that. --- ascii-town-heatmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit 1.4.1