|
|
@ -59,14 +59,10 @@ def main():
|
|
|
|
ctx.move_to(*points[0])
|
|
|
|
ctx.move_to(*points[0])
|
|
|
|
for p in points[1:]:
|
|
|
|
for p in points[1:]:
|
|
|
|
ctx.line_to(*p)
|
|
|
|
ctx.line_to(*p)
|
|
|
|
ctx.set_line_width(step_size) #0.002)
|
|
|
|
for p in reversed(lastpoints):
|
|
|
|
ctx.stroke()
|
|
|
|
ctx.line_to(*p)
|
|
|
|
# fill area above
|
|
|
|
ctx.line_to(*points[0])
|
|
|
|
ctx.set_line_width(step_size)
|
|
|
|
ctx.fill()
|
|
|
|
for pos in range(len(points)):
|
|
|
|
|
|
|
|
ctx.move_to(*points[pos])
|
|
|
|
|
|
|
|
ctx.line_to(*lastpoints[pos])
|
|
|
|
|
|
|
|
ctx.stroke()
|
|
|
|
|
|
|
|
lastpoints = points
|
|
|
|
lastpoints = points
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|