textmode.js / Textmodifier / bezierCurve
Method: bezierCurve()
ts
bezierCurve(
x1,
y1,
cp1x,
cp1y,
cp2x,
cp2y,
x2,
y2): void;Draw a smooth cubic Bezier curve between two points. The curve thickness is controlled by the current lineWeight setting.
Parameters
| Parameter | Type | Description |
|---|---|---|
x1 | number | Start point X coordinate in grid cells. |
y1 | number | Start point Y coordinate in grid cells. |
cp1x | number | First control point X coordinate in grid cells. |
cp1y | number | First control point Y coordinate in grid cells. |
cp2x | number | Second control point X coordinate in grid cells. |
cp2y | number | Second control point Y coordinate in grid cells. |
x2 | number | End point X coordinate in grid cells. |
y2 | number | End point Y coordinate in grid cells. |
Returns
void