This commit is contained in:
Michael Fogleman 2018-03-13 12:43:04 -04:00
parent d36c616a38
commit a3176c67d8
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import math
import random import random
import sys import sys
BOUNDS = axi.V3_BOUNDS BOUNDS = axi.A3_BOUNDS
RADIUS = 4 RADIUS = 4
STEP = 5 STEP = 5
@ -20,6 +20,7 @@ def main():
paths.append([(-r * c, -r * s), (r * c, r * s)]) paths.append([(-r * c, -r * s), (r * c, r * s)])
d = axi.Drawing(paths) d = axi.Drawing(paths)
d = d.center(w, h) d = d.center(w, h)
d = d.sort_paths()
d.dump('out.axi') d.dump('out.axi')
d.render(bounds=BOUNDS).write_to_png('out.png') d.render(bounds=BOUNDS).write_to_png('out.png')