Skip to main content

BezierCurve

WLJS
Execution environment
JerryI`Notebook`Graphics2D`
Context
BezierCurve[{pts__List}]

plots quadratic Bezier curve using every first point as a starting point and forth point as a destination. If there are more than 4 points provided, it will split them into multiple curves

pts = {{0, 0}, {1, 1}, {2, -1}, {3, 0}, {5, 2}, {6, -1}, {7, 3}};
Graphics[{BezierCurve[pts], Green, Line[pts], Red, Point[pts]}]