diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-24 23:24:25 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-24 23:24:25 +0200 |
commit | 9eba6bcfc35da321a0895a0c36b972634c64592a (patch) | |
tree | ac18dea6a9a67a358f632f7e595401445ac32c32 /gui.py | |
parent | 1264912f99c6a9298ca2bfda87a60d58ca3bba44 (diff) |
sexy graphics and saner approaching / not approaching friends
Diffstat (limited to 'gui.py')
-rw-r--r-- | gui.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |