2
# contributed by Gerhard Schmid
12
p = path.path(path.moveto(0, 0),
14
path.lineto(0.5 * l, h),
18
# path is scaled down ...
19
p = p.transformed(trafo.scale(0.5))
20
# ... and three times plotted (translated accordingly)
21
p += ( p.transformed(trafo.translate(0.5 * l, 0)) +
22
p.transformed(trafo.translate(0.25 * l, 0.5 * h)) )
25
c.stroke(p, [style.linewidth.Thin])
26
c.writeEPSfile("sierpinski", paperformat="a4")