Renderables
Bezier
A smooth cubic Bézier curve between two points.
Object type renderable pins
A Bezier is a cubic Bézier curve from start to end. It leaves start
heading towards the control point cp1 and arrives at end coming from
cp2; the curve doesn't usually pass through the control points. All four
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 |
| start | Point | |
| cp1 | Point | |
| cp2 | Point | |
| end | Point |
Nodes
Break Bezier
Node id break/Bezier
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Bezier | type default |
Outputs
Make Bezier
Node id make/Bezier
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" } | |
| start | Point | { x: -150, y: -75 } | |
| cp1 | Point | { x: -50, y: 75 } | |
| cp2 | Point | { x: 50, y: -75 } | |
| end | Point | { x: 150, y: 75 } |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Bezier |
Set Bezier
Node id set/Bezier
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Bezier | type default | |
| position | Point | — | |
| rotation | number | — | |
| scale | number | — | |
| stroke | Stroke | — | |
| start | Point | — | |
| cp1 | Point | — | |
| cp2 | Point | — | |
| end | Point | — |
Outputs
| Name | Type | Notes |
|---|---|---|
| object | Bezier |
Lerp Bezier
Node id lerp/Bezier
Inputs
Outputs
| Name | Type | Notes |
|---|---|---|
| result | Bezier |
Notes
- Default. Make Bezier gives an S-shaped curve from (-150, -75) to (150, 75), with control points (-50, 75) and (50, -75).
- Sampling. Sample and Point At space points evenly in the curve's parameter, not along its length: points bunch up where the curve is tight.
Lerp
Lerp Bezier blends all four points, the transform and the stroke. t is
clamped to 0, 1.