From 841c7607ffab66d208771c220f2e6a9193112234 Mon Sep 17 00:00:00 2001 From: group1 Date: Mon, 17 Oct 2016 00:06:48 -0400 Subject: Sunrise changes --- fish_show.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fish_show.py') diff --git a/fish_show.py b/fish_show.py index 6abf3bc..2894863 100644 --- a/fish_show.py +++ b/fish_show.py @@ -58,7 +58,9 @@ 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 * fish.alpha_at(x, y) + if fish.is_diamond: + return coverage * scale + return coverage * fish.alpha_at(x, y) def pick_HSV(depth): -- cgit v1.3.1