summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorSpitfireX <timm.weber@me.com>2015-08-10 02:45:17 +0200
committerSpitfireX <timm.weber@me.com>2015-08-10 02:45:17 +0200
commit42c30f13bff6da92fdc729f26a6ebd9cf174e27b (patch)
tree2f61d5ee17beca6bac862453dfab3aef9a298b36 /gui.py
parentd980bc54a2bdefbfa83a7d1856db5c41fd68e7b8 (diff)
Enhanced virus rendering
viruses now have an outline
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 65c977a..98485d9 100644
--- a/gui.py
+++ b/gui.py
@@ -68,10 +68,14 @@ def draw_cell(cell):
color = (0,255,0)
color2 = (100,255,0)
polygon = generate_virus(int(cell.size*0.3), 10*zoom, radius, (cx, cy))
+ polygon2 = generate_virus(int(cell.size*0.3), 10*zoom, radius-10, (cx, cy))
gfxdraw.filled_polygon(screen, polygon, color2)
- gfxdraw.aapolygon(screen, polygon, color)
- gfxdraw.polygon(screen, polygon, color)
+ gfxdraw.polygon(screen, polygon, (0,0,0))
+ gfxdraw.aapolygon(screen, polygon, (0,0,0))
+
+ gfxdraw.filled_polygon(screen, polygon2, color)
+ gfxdraw.aapolygon(screen, polygon2, color)
else:
color=(int(cell.color[0]*255), int(cell.color[1]*255), int(cell.color[2]*255))