Line
Draws a line between two points.| Name | Type | Description |
|---|---|---|
| p1 | Point | Start point |
| p2 | Point | End point |
Points
Draws points and optionally connects them.| Name | Type | Description |
|---|---|---|
| points | Point[] | Points to draw |
| mode | PointMode | How to connect points: points, lines, or polygon (default: points) |
Point Mode: points
Draws individual points without connections:Point Mode: lines
Connects pairs of points with lines:Point Mode: polygon
Connects all points in sequence:Examples
Grid Pattern
Related
- Paths - Draw complex shapes
- Circles - Draw circles
- Paint Properties - Styling options