Path
new Path(points?: Vector2[])THREE equivalent: THREE.Path
2D path built from move/line/arc/bezier commands. Extends CurvePath with drawing-style API.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
currentPoint |
Vector2 |
The current pen position. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
moveTo(x: number, y: number): this |
Moves the pen without drawing. |
lineTo(x: number, y: number): this |
Draws a line segment to (x, y). |
quadraticCurveTo(cpX: number, cpY: number, x: number, y: number): this |
Draws a quadratic Bezier curve. |
bezierCurveTo(cp1X: number, cp1Y: number, cp2X: number, cp2Y: number, x: number, y: number): this |
Draws a cubic Bezier curve. |
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, clockwise?: boolean): this |
Draws a circular arc relative to the current point. |
ellipse(x: number, y: number, xR: number, yR: number, startAngle: number, endAngle: number, clockwise?: boolean, rotation?: number): this |
Draws an elliptical arc relative to the current point. |