Renderables
Polyline
An open line through a list of points.
Object type renderable pins
A polyline joins its points in order with straight segments, without
closing the outline. The points are relative to its position. Like every
Line, it has a stroke and no fill.
Hierarchy
- Parents
Line→Renderable- Subtypes
- None
Properties
| Name | Type | Notes |
|---|---|---|
| position | Point | from Renderable |
| rotation | number | from Renderable |
| scale | number | from Renderable |
| opacity | number | read-only from Renderable |
| blendMode | BlendMode | read-only from Renderable |
| stroke | Stroke | from Line |
| points | Array<Point> |
Nodes
Break Polyline
Node id break/Polyline
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Polyline | type default |
Outputs
Make Polyline
Node id make/Polyline
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| position | Point | { x: 0, y: 0 } | |
| rotation | number | 0 | |
| scale | number | 1 | |
| stroke | Stroke | { width: 1, color: { r: 0, g: 0, b: 0, a: 1 }, dashStyle: "SOLID", caps: "round" } | |
| points | Array<Point> | [{ x: -150, y: -75 }, { x: -50, y: 75 }, { x: 50, y: -75 }, { x: 150, y: 75 }] |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Polyline |
Set Polyline
Node id set/Polyline
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Polyline | type default | |
| position | Point | — | |
| rotation | number | — | |
| scale | number | — | |
| stroke | Stroke | — | |
| points | Array<Point> | — |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Polyline |
Lerp Polyline
Node id lerp/Polyline
Inputs
Outputs
| Name | Type | Notes |
|---|---|---|
| result | Polyline |
Notes
- Default. Make Polyline gives a zigzag through (-150, -75), (-50, 75), (50, -75) and (150, 75).
- From other nodes.
pointsis anArray<Point>, e.g. from Sample or Map.
Lerp
Lerp Polyline blends each point with the point at the same index, plus the
transform and the stroke. Both polylines must have the same number of
points, else it's a node error. t is clamped to 0, 1.