Makes a command that draws a circular arc through one point to another.
The arc turns whichever way takes it from where the pen is through through to to; the
three points must not lie on one line.
The point to pass through, the point to end at, whether they are relative and the command's id
The command
Makes a command that draws a circular arc to a point, leaving in the direction the previous segment ended in.
It needs a segment before it. The arc's radius follows from where it ends; an end straight
ahead is refused, as tangentLine draws that.
The point to end at, whether it is relative and the command's id
The command
Makes a command that draws a circular arc to a point, bowed out by a given distance.
sagitta is how far the middle of the arc stands off the straight line to to: positive to
the left of the direction of travel, negative to the right.
The point to end at, the sagitta, whether the point is relative and the command's id
The command
Makes a command that draws a circular arc to a point, given by its bulge as DXF files write arcs.
bulge is the tangent of a quarter of the angle swept: positive turns counterclockwise, 1
draws a half circle and 0 is refused, being a straight line.
The point to end at, the bulge, whether the point is relative and the command's id
The command
Makes a command that rounds the corner between the segment before it and the segment after it with an arc of a given radius.
Placed after close, it rounds the corner at the start point. Only lines and circular arcs
take a corner, and a radius too large for them is refused.
The radius and the command's id
The command
Makes a command that bevels the corner between the segment before it and the segment after it, cutting the same distance off each.
distance is measured along each segment. Placed after close, it bevels the corner at the
start point; only lines and circular arcs take a corner.
The distance and the command's id
The command
Makes a command that draws a quadratic Bezier curve to a point, pulled toward a control point.
With relative true, control and to are offsets from where the pen is.
The control point, the point to end at, whether they are relative and the command's id
The command
Makes a command that draws a cubic Bezier curve to a point, shaped by two control points.
The curve leaves toward control1 and arrives from control2; with relative true all three
points are offsets from where the pen is.
The two control points, the point to end at, whether they are relative and the command's id
The command
Makes a command that draws a straight segment to a point.
to is a point in the sketch's x and y, or an offset from where the pen is when relative
is true.
The point to draw to, whether it is relative and the command's id
The command
Makes a command that draws a straight segment along the sketch's x axis.
A negative length draws in the negative x direction.
The length and the command's id
The command
Makes a command that draws a straight segment along the sketch's y axis.
A negative length draws in the negative y direction.
The length and the command's id
The command
Makes a command that draws a straight segment of a given length at an angle.
angle is in degrees from the sketch's x axis, counterclockwise; a negative length draws
the opposite way.
The length, the angle in degrees and the command's id
The command
Makes a command that draws straight on in the direction the previous segment ended in.
It needs a segment before it, and is how a straight run leaves an arc smoothly.
The length and the command's id
The command
Makes a command that closes the outline with a straight segment back to the start point.
Only corner commands may follow it. When the pen is already at the start point it draws nothing and only closes the outline.
The command's id
The command
Making the commands
sketch.pendraws, one at a time: lines, circular arcs, Bezier curves, closing the outline, and rounding or beveling a corner. Each method returns one command as plain data, the same object a script can write by hand, so a list of them is whatsketch.pentakes.