from piscript.PiModule import * init("bezier0", 100, 50) beginpage() center() scale(24) translate(-1.5, -0.5) p0 = [0,0] p1 = [1,1] p2 = [2,1] p3 = [3,0] gsave() newpath() moveto(p0) lineto(p1) moveto(p2) lineto(p3) stroke(1, 0.6, 0.6) rad = 0.072 newpath() arc(p0[0], p0[1], rad, 0, 360) fill() newpath() arc(p1[0], p1[1], rad, 0, 360) fill() newpath() arc(p2[0], p2[1], rad, 0, 360) fill() newpath() arc(p3[0], p3[1], rad, 0, 360) fill() grestore() newpath() moveto(p0) curveto(p1, p2, p3) stroke() endpage() flush()