From 726ef4458df86fe440299ca4bd675d6a712b8258 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sun, 15 Nov 2020 12:21:51 +0400 Subject: [PATCH] Ticken overlap lines, change no-overlap colour from yellow to green --- geom/demos/sat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geom/demos/sat.py b/geom/demos/sat.py index b09b61f..8d5cf11 100644 --- a/geom/demos/sat.py +++ b/geom/demos/sat.py @@ -42,13 +42,13 @@ class SeparatingAxisTheorem: add(*scale(*normal, 1000), *offset)) # shape 1 - line(surface, YELLOW if not colliding else RED, + line(surface, GREEN if not colliding else RED, add(*scale(*normal, min1), *offset), - add(*scale(*normal, max1), *offset), 5) + add(*scale(*normal, max1), *offset), 8) # shape 2 - line(surface, YELLOW if not colliding else RED, + line(surface, GREEN if not colliding else RED, add(*scale(*normal, min2), *offset), - add(*scale(*normal, max2), *offset), 5) + add(*scale(*normal, max2), *offset), 8) def render(self, surface): self.handle_input()