summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC. McEnroe <programble@gmail.com>2017-08-29 14:34:36 -0400
committerC. McEnroe <programble@gmail.com>2017-08-29 14:34:36 -0400
commit2484d15802320b59c27c53560a045d1637748681 (patch)
tree141a1103a47c734d79b1311d1f55df909470dd8b
parentMap create time in hue (diff)
downloadheatmap-create-time.tar.gz
heatmap-create-time.zip
Don't vary Lcreate-time
Oops I didn't mean to commit that.
-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]);