Divooka Reference

Texture Functions

5 nodes

On this page 5

Combine Values

Function

Two textures combined by your function, value by value.

Signature
CombineValues -> Texture
    a: Texture
    b: Texture
    function: Func<Number, Number, Number>
Texture CombineValues(
    Texture a,
    Texture b,
    Func<double, double, double> function)

Parameters

nametypedefaultdescription
aTexture—The first texture.
bTexture—The second texture.
functionFunc<Number, Number, Number>—The result for a pair of values.

Returns

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

Map Values

Function

Every value of a texture passed through your function: a custom curve, a remap no other node gives.

Signature
MapValues -> Texture
    texture: Texture
    function: Func<Number, Number>
Texture MapValues(
    Texture texture,
    Func<double, double> function)

Parameters

nametypedefaultdescription
textureTexture—The texture.
functionFunc<Number, Number>—The new value for an old one.

Returns

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

Pixel Function

Function

A greyscale texture whose every pixel is your function of its position: across (u) and down (v), each 0 to 1 over the texture.

Signature
PixelFunction -> Texture
    function: Func<Number, Number, Number>
    size: Integer
Texture PixelFunction(
    Func<double, double, double> function,
    int size = 256)

Parameters

nametypedefaultdescription
functionFunc<Number, Number, Number>—The value at (u, v).
sizeInteger256Width and height in pixels.

Returns

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

Sample Texture

Function

The value of a texture at a point, 0 to 1 across and down, smoothly between pixels: for reading a texture inside a function.

Signature
SampleTexture(texture: Texture, u: Number, v: Number) -> Number
double SampleTexture(Texture texture, double u, double v)

Parameters

nametypedefaultdescription
textureTexture—The texture.
uNumber—Across, 0 to 1; beyond wraps.
vNumber—Down, 0 to 1; beyond wraps.

Returns

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

Texture Range

Function

The lowest and highest values in a texture.

Signature
TextureRange(texture: Texture) -> (result: Number, maximum: Number)
double TextureRange(Texture texture, out double maximum)

Parameters

nametypedefaultdescription
textureTexture—The texture.

Returns

resultNumber
maximumNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Functions
Package
Image Processing