diff options
author | SpitfireX <timm.weber@me.com> | 2015-08-10 02:45:17 +0200 |
---|---|---|
committer | SpitfireX <timm.weber@me.com> | 2015-08-10 02:45:17 +0200 |
commit | 42c30f13bff6da92fdc729f26a6ebd9cf174e27b (patch) | |
tree | 2f61d5ee17beca6bac862453dfab3aef9a298b36 /gui.py | |
parent | d980bc54a2bdefbfa83a7d1856db5c41fd68e7b8 (diff) |
Enhanced virus rendering
viruses now have an outline
Diffstat (limited to 'gui.py')
-rw-r--r-- | gui.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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)) |