Divooka Reference

Texture Shapes

1 node

On this page 1

Shape

Function

A 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: Integer
Texture Shape(
    ShapeKind kind = ShapeKind.Disc,
    int tiles = 1,
    double scale = 0.9,
    int sides = 6,
    double rotation = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
kindShape KindDiscWhich shape.
tilesInteger1How many times it repeats across and down.
scaleNumber0.9Its size within its cell, 1 filling it.
sidesInteger6For a polygon or a star, how many sides or points.
rotationNumber0Turns it, in degrees.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Shapes
Package
Image Processing