From 42c30f13bff6da92fdc729f26a6ebd9cf174e27b Mon Sep 17 00:00:00 2001 From: SpitfireX Date: Mon, 10 Aug 2015 02:45:17 +0200 Subject: Enhanced virus rendering viruses now have an outline --- gui.py | 8 ++++++-- 1 file 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)) -- cgit v1.2.3