Texture Functions
5 nodes
On this page 5
Combine Values
FunctionTwo 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
| name | type | default | description |
|---|---|---|---|
| a | Texture | — | The first texture. |
| b | Texture | — | The second texture. |
| function | Func<Number, Number, Number> | — | The result for a pair of values. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Functions
- Package
- Image Processing
Map Values
FunctionEvery 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
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| function | Func<Number, Number> | — | The new value for an old one. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Functions
- Package
- Image Processing
Pixel Function
FunctionA 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: IntegerTexture PixelFunction(
Func<double, double, double> function,
int size = 256)Parameters
| name | type | default | description |
|---|---|---|---|
| function | Func<Number, Number, Number> | — | The value at (u, v). |
| size | Integer | 256 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Functions
- Package
- Image Processing
Sample Texture
FunctionThe 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
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| u | Number | — | Across, 0 to 1; beyond wraps. |
| v | Number | — | Down, 0 to 1; beyond wraps. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Functions
- Package
- Image Processing
Texture Range
FunctionThe lowest and highest values in a texture.
Signature
TextureRange(texture: Texture) -> (result: Number, maximum: Number)
double TextureRange(Texture texture, out double maximum)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
Returns
| result | Number |
| maximum | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Functions
- Package
- Image Processing