Question about arcTo and end coordinate
-
Hello,
Is there a way to obtain the current coordinates of the pen. For example, at the end of arcTo (xy1, xy2, xy3, radius), the pen is on the line xy2,xy3 at a certain coordinate, which I would like to obtain.
Thanks,
JD
-
hello @JD,
you can ask a BezierPath for its points:
B = BezierPath() B.moveTo((74, 48)) B.arcTo((238, 182), (46, 252), 60) print('on-curve points:', B.onCurvePoints) print('off-curve points:', B.offCurvePoints) print('all points (on- AND off-curve):', B.points)
cheers!
-
@gferreira
Thank you, that's very helpful !