Texture Channels
10 nodes
On this page 10
Color Variation
FunctionVaries a colour texture's hue, saturation and value by a greyscale map, centred on middle grey: grey leaves the colour alone, white and black push it opposite ways. Per-brick or per-plank colour variation from a random-per-cell map.
ColorVariation -> Texture
color: Texture
variation: Texture
hueRange: Number
saturationRange: Number
valueRange: NumberTexture ColorVariation(
Texture color,
Texture variation,
double hueRange = 0.03,
double saturationRange = 0.15,
double valueRange = 0.15)Parameters
| name | type | default | description |
|---|---|---|---|
| color | Texture | — | The colour texture. |
| variation | Texture | — | The map driving the variation; middle grey changes nothing. |
| hueRange | Number | 0.03 | The largest hue shift, as a share of the wheel. |
| saturationRange | Number | 0.15 | The largest saturation change. |
| valueRange | Number | 0.15 | The largest lightness change. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Gradient Map
FunctionA greyscale texture coloured through a gradient: each value picks the ramp's colour at that position. How a height becomes a believable base colour.
GradientMap(greyscale: Texture, gradient: Color Ramp) -> Texture
Texture GradientMap(Texture greyscale, ColorRamp gradient)
Parameters
| name | type | default | description |
|---|---|---|---|
| greyscale | Texture | — | The values, 0 to 1. |
| gradient | Color Ramp | — | The colours along 0 to 1. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Gradient Map Stops
FunctionA greyscale texture coloured through a gradient written as text: each stop a position and a colour, separated by semicolons - 0 #2B1A12; 0.5 #8A4B2F; 1 #D9A273. The same stops a Color Ramp takes.
GradientMapStops(greyscale: Texture, stops: Text) -> Texture
Texture GradientMapStops(
Texture greyscale,
string stops = "0 #000000; 1 #FFFFFF")Parameters
| name | type | default | description |
|---|---|---|---|
| greyscale | Texture | — | The values, 0 to 1. |
| stops | Text | 0 #000000; 1 #FFFFFF | The gradient's stops, a position and a colour each. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Gradient Map Three Colors
FunctionA greyscale texture coloured between three colours: black, middle grey and white take the dark, middle and light ones.
GradientMapThreeColors -> Texture
greyscale: Texture
dark: Color
middle: Color
light: ColorTexture GradientMapThreeColors(
Texture greyscale,
ColorElement dark,
ColorElement middle,
ColorElement light)Parameters
| name | type | default | description |
|---|---|---|---|
| greyscale | Texture | — | The values, 0 to 1. |
| dark | Color | — | The colour of 0. |
| middle | Color | — | The colour of 0.5. |
| light | Color | — | The colour of 1. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Gradient Map Two Colors
FunctionA greyscale texture coloured between two colours: black takes the dark one, white the light one.
GradientMapTwoColors -> Texture
greyscale: Texture
dark: Color
light: ColorTexture GradientMapTwoColors(
Texture greyscale,
ColorElement dark,
ColorElement light)Parameters
| name | type | default | description |
|---|---|---|---|
| greyscale | Texture | — | The values, 0 to 1. |
| dark | Color | — | The colour of 0. |
| light | Color | — | The colour of 1. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Greyscale
FunctionA colour texture's brightness as greyscale: its luminance.
Greyscale(color: Texture) -> Texture
Texture Greyscale(Texture color)
Parameters
| name | type | default | description |
|---|---|---|---|
| color | Texture | — | The texture. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Hue Saturation Lightness
FunctionShifts the hue and scales the saturation and lightness of a colour texture, computed in the encoded colour a person sees so the sliders behave as a paint program's do.
HueSaturationLightness -> Texture
color: Texture
hueShift: Number
saturation: Number
lightness: NumberTexture HueSaturationLightness(
Texture color,
double hueShift = 0,
double saturation = 1,
double lightness = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| color | Texture | — | The colour texture. |
| hueShift | Number | 0 | Turns every hue by this share of the colour wheel, -0.5 to 0.5. |
| saturation | Number | 1 | Multiplies saturation: 0 is grey, 1 unchanged. |
| lightness | Number | 0 | Added to lightness, -1 to 1. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Merge
FunctionFour greyscale textures as one colour texture's channels. Alpha is 1 where none is given. Merged as data, values unchanged, which is how packed maps (occlusion, roughness, metallic) are built.
Merge -> Texture
red: Texture
green: Texture
blue: Texture
alpha: Texture
asColor: TruthTexture Merge(
Texture red,
Texture green,
Texture blue,
Texture alpha,
bool asColor = false)Parameters
| name | type | default | description |
|---|---|---|---|
| red | Texture | — | The red channel. |
| green | Texture | — | The green channel. |
| blue | Texture | — | The blue channel. |
| alpha | Texture | — | The alpha channel; optional. |
| asColor | Truth | False | Whether the channels are colour in linear light rather than data. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Split
FunctionA colour texture's four channels as four greyscale textures.
Split(color: Texture) -> (result: Texture, green: Texture, blue: Texture, alpha: Texture)
Texture Split(
Texture color,
out Texture green,
out Texture blue,
out Texture alpha)Parameters
| name | type | default | description |
|---|---|---|---|
| color | Texture | — | The colour texture. |
Returns
| result | Texture |
| green | Texture |
| blue | Texture |
| alpha | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing
Tint
FunctionMultiplies a texture by a colour: tints white to that colour and darkens everything else toward it.
Tint(texture: Texture, color: Color) -> Texture
Texture Tint(Texture texture, ColorElement color)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture; greyscale becomes colour. |
| color | Color | — | The tint. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Channels
- Package
- Image Processing