From e717c90bbdc3089f64c943afb98f44df031cab18 Mon Sep 17 00:00:00 2001 From: Raymond Hogenson Date: Sun, 16 Oct 2016 14:35:05 -0400 Subject: Improve eel movement --- fish_show.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fish_show.py') diff --git a/fish_show.py b/fish_show.py index 62a07c9..cb80d55 100644 --- a/fish_show.py +++ b/fish_show.py @@ -51,7 +51,7 @@ def compute_coverage(fish, x, y): min_y = min(max(y, fish.y), y + 1) max_y = max(min(y+1, fish.y + fish.height), y) coverage = (max_x - min_x) * (max_y - min_y) - return coverage * scale + return coverage * scale * fish.alpha_at(x, y) def pick_HSV(depth): -- cgit v1.3.1