Skip to content

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


MpKnot.left_type : string

when present: endpoint, but usually absent

MpKnot.right_type


MpKnot.right_type : string

like left_type

MpKnot.x_coord


MpKnot.x_coord : number

X coordinate of this knot

MpKnot.y_coord


MpKnot.y_coord : number

Y coordinate of this knot

MpKnot.left_x


MpKnot.left_x : number

X coordinate of the precontrol point of this knot

MpKnot.left_y


MpKnot.left_y : number

Y coordinate of the precontrol point of this knot

MpKnot.right_x


MpKnot.right_x : number

X coordinate of the postcontrol point of this knot

MpKnot.right_y


MpKnot.right_y : number

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.