hobby
hobby()
Draws a Hobby curve through a set of points.
Styling
Root hobby
Supports marks.
Anchors
Supports path anchors.
- pt-n
- The nth given position (0 indexed, so “pt-0” is equal to “start”)
hobby((0, 0), (1, 1), (2, -1), (3, 0), omega: 0, stroke: blue)
hobby((0, 0), (1, 1), (2, -1), (3, 0), omega: 1, stroke: red)
..pts-style:
coordinate or style
Positional arguments are the coordinates to use to draw the curve with, a minimum of two is required. Named arguments are for styling.
Incoming tension at pts.at(n+1) from pts.at(n) to pts.at(n+1). The number given must be one less than the number of points.
Outgoing tension at pts.at(n) from pts.at(n) to pts.at(n+1). The number given must be one less than the number of points.