Divooka Reference

Shapes

1 node

On this page 1

Disk

Function

A disk: how far a point is from the disk's edge, negative inside and positive outside.

Signature
Disk(UV: Vector 2D, radius: Number, center: Vector 2D) -> Number
double Disk(Vector2D uv, double radius = 0.5, Vector2D center)

Parameters

nametypedefaultdescription
UVVector 2D—The point, in shader coordinates.
radiusNumber0.5The disk's radius.
centerVector 2D—The disk's centre.

Returns

DistanceNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Shapes
Package
GPU Kernels