summaryrefslogtreecommitdiffstats
path: root/fish_show.py
diff options
context:
space:
mode:
Diffstat (limited to 'fish_show.py')
-rw-r--r--fish_show.py4
1 files changed, 3 insertions, 1 deletions
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):