summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-24 23:24:25 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-24 23:24:25 +0200
commit9eba6bcfc35da321a0895a0c36b972634c64592a (patch)
treeac18dea6a9a67a358f632f7e595401445ac32c32 /gui.py
parent1264912f99c6a9298ca2bfda87a60d58ca3bba44 (diff)
sexy graphics and saner approaching / not approaching friends
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 5025f26..cf68bc5 100644
--- a/gui.py
+++ b/gui.py
@@ -61,6 +61,11 @@ def draw_circle(pos, r, color, filled=False, global_coords=True):
gfxdraw.circle(screen, pos[0], pos[1], r, color)
gfxdraw.aacircle(screen, pos[0], pos[1], r, color)
+def hilight_cell(cell, color_inner, color_outer, r=20):
+ draw_circle(cell.pos, cell.size+r, color_outer, True)
+ draw_circle(cell.pos, cell.size+r/2, color_inner, True)
+ draw_cell(cell)
+
def draw_polygon(polygon, color, filled=False, global_coords=True):
if len(polygon) > 2:
if global_coords: