Renderables
Shape
A closed, filled outline: circles, ellipses, rectangles and polygons.
Abstract type renderable pins
Shape is the abstract type of closed outlines. Besides the
Renderable transform, every shape has a fill
(a Paint: a color or a gradient) and a stroke for its
outline.
Hierarchy
- Parents
Renderable- Subtypes
Circle,Ellipse,Rectangle,Polygon,RegularPolygon,Text,ClosedSpline,Sector
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 |
| fill | Paint | |
| stroke | Stroke |
Nodes
Break Shape
Node id break/Shape
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| object | Shape | — |
Outputs
Notes
- Defaults. Shapes made by a Make node are filled mid gray (128, 128, 128), with the default Stroke: 1 wide, black, solid.
- Break only. Shape is abstract, so it has no Make, Set or Lerp node. Break Shape reads the fill and stroke of any shape.
- Fill. A Color, a LinearGradient or a RadialGradient. In the inspector an unconnected fill is edited as a Color; connect a Make LinearGradient or Make RadialGradient for a gradient. Image fills aren't available in graphs.
Related types
- Circle, Ellipse, Rectangle, Polygon, RegularPolygon, Text, ClosedSpline and Sector.
- Line, for open paths without a fill.