bezier()
Draws a bezier curve through the given points. The first argument is the explicit start, the last is the endpoint, and any in between are control points. Sets the sketch cursor to the endpoint. With 0 args: interactive mode placeholder (no geometry). With 1 arg: places only the start point (no curve yet). With 2 args: degree 1 (straight line from start to end). With 3 args: degree 2 (quadratic bezier with 1 control point). With 4 args: degree 3 (cubic bezier with 2 control points).
Returns: Geometry
Signatures
bezier(...points: Point2DLike[]): Geometry
Draws a bezier curve through the given points. The first argument is the explicit start, the last is the endpoint, and any in between are control points. Sets the sketch cursor to the endpoint. With 0 args: interactive mode placeholder (no geometry). With 1 arg: places only the start point (no curve yet). With 2 args: degree 1 (straight line from start to end). With 3 args: degree 2 (quadratic bezier with 1 control point). With 4 args: degree 3 (cubic bezier with 2 control points).
| Parameter | Type | Description |
|---|---|---|
...points | Point2DLike[] | Start, optional control points, and end point (optional) |