class MpKnot
Paths and pens (that are really just a special type of paths as far as mplib is concerned) are represented by an array where each entry is a table that represents a knot.
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
MpKnot.left_type
when present: endpoint, but usually absent
MpKnot.right_type
like left_type
MpKnot.x_coord
X coordinate of this knot
MpKnot.y_coord
Y coordinate of this knot
MpKnot.left_x
X coordinate of the precontrol point of this knot
MpKnot.left_y
Y coordinate of the precontrol point of this knot
MpKnot.right_x
X coordinate of the postcontrol point of this knot
MpKnot.right_y
Y coordinate of the postcontrol point of this knot
There is one special case: pens that are (possibly transformed) ellipses have an
extra string-valued key type
with value elliptical
besides the
array part containing the knot list.