From af2540477760e07ad99ce22f6bdfa6ffa5593b18 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Fri, 2 Nov 2018 12:32:12 -0700 Subject: [PATCH] fix silly problems with heatmap, now it works well enough --- editor/src/plugins/show_activity.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/src/plugins/show_activity.rs b/editor/src/plugins/show_activity.rs index 65a0002b07..e6eded5167 100644 --- a/editor/src/plugins/show_activity.rs +++ b/editor/src/plugins/show_activity.rs @@ -110,13 +110,13 @@ impl Heatmap { } let percent = (self.counts[x][y] as f32) / (self.max as f32); - // TODO Map percent to hot/cold colors - let color = Color::rgba(255, 0, 0, percent); + // TODO Map percent to hot/cold colors. For now, don't ever become totally opaque. + let color = Color::rgba(255, 0, 0, percent * 0.8); g.draw_rectangle( color, [ - (x as f64) * tile_width, - (y as f64) * tile_height, + self.bounds.min_x + (x as f64) * tile_width, + self.bounds.min_y + (y as f64) * tile_height, tile_width, tile_height, ],