Texture Shapes
1 node
On this page 1
Shape
FunctionA shape drawn in every cell of a grid: filled shapes (square, disc, polygon, star, ring) are white inside with a smooth edge; rounded ones (dome, bell, pyramid, cone) rise from 0 at their edge to 1 at their centre.
Signature
Shape -> Texture
kind: Shape Kind
tiles: Integer
scale: Number
sides: Integer
rotation: Number
size: IntegerTexture Shape(
ShapeKind kind = ShapeKind.Disc,
int tiles = 1,
double scale = 0.9,
int sides = 6,
double rotation = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| kind | Shape Kind | Disc | Which shape. |
| tiles | Integer | 1 | How many times it repeats across and down. |
| scale | Number | 0.9 | Its size within its cell, 1 filling it. |
| sides | Integer | 6 | For a polygon or a star, how many sides or points. |
| rotation | Number | 0 | Turns it, in degrees. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Shapes
- Package
- Image Processing