Renderables
Arc
Part of a circle, between two angles.
Object type renderable pins
An arc is the part of a circle of radius around its position that goes
from startAngle to endAngle. 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 |
| radius | number | |
| startAngle | number | |
| endAngle | number |
Nodes
Break Arc
Node id break/Arc
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Arc | type default |
Outputs
Make Arc
Node id make/Arc
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" } | |
| radius | number | 100 | |
| startAngle | number | 0 | |
| endAngle | number | 2.617993877991494 |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Arc |
Set Arc
Node id set/Arc
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Arc | type default | |
| position | Point | — | |
| rotation | number | — | |
| scale | number | — | |
| stroke | Stroke | — | |
| radius | number | — | |
| startAngle | number | — | |
| endAngle | number | — |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Arc |
Lerp Arc
Node id lerp/Arc
Inputs
Outputs
| Name | Type | Notes |
|---|---|---|
| result | Arc |
Notes
- Units. Angles are in radians, 0 pointing right and growing clockwise (the page's y axis points down).
- Default. Make Arc gives an arc of radius 100 from 0 to 5π/6.
Lerp
Lerp Arc blends the radius, both angles, the transform and the stroke. t
is clamped to 0, 1.