summary refs log tree commit diff
diff options
context:
space:
mode:
-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]);
tle='2022-06-03 10:34:51 -0400'>2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe