### 2.11 Path

To draw an open or closed path.

• Shortcut: Ctrl+H
• We give a name.
• We enter a command as a list of points (affixes) and instructions that indicate what the points correspond to. These instructions are:
• line: link the points with a polyline,
• linearc: link the points with a polyline but the angles are rounded with an arc. The value preceeding the linearc command is interpreted as the arc’s radius.
• arc: draw an arc of circle. It needs four arguments: 3 points and the radius, plus eventually a fifth argument: (+/-1). 1 (default) for counterclockwise.
• ellipticArc: draw an arc of ellipse. That needs five arguments: 3 points, the Xradius, the Yradius, and eventually a sixth argument: the direction angle (degrees) of the great axis with the horizontal axis.
• curve: link the points with a natural cubic spline.
• bezier: link the first and the fourth point with a Bézier curve (the second and third points are the control points).
• circle: draw a circle. Needs two arguments: one point and the center, or three arguments that are three points of the circle.
• ellipse: draw an ellipse, the arguments are: one point, the center, rX radius, ry radius, great axis direction in degrees (optional).
• move: a move without drawind anything.
• closepath: close the current component.

By convention, the first argument of the part number n+1 is the last point of the part number n.

• Exemple(s)Path([-3+2*i,-3,-2,line,0,2,2,-1,arc,3,3+3*i,0.5,linearc,1,-1+5*i,-3+2*i,bezier,closepath])
• Corresponding graphical command: Path (to be used in a User-defined type element).