Texture Adjustments
13 nodes
On this page 13
Auto Levels
FunctionStretches the values so the darkest becomes 0 and the brightest 1.
AutoLevels(texture: Texture) -> Texture
Texture AutoLevels(Texture texture)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Clamp
FunctionHolds every value between a minimum and a maximum.
Clamp -> Texture
texture: Texture
minimum: Number
maximum: NumberTexture Clamp(
Texture texture,
double minimum = 0,
double maximum = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| minimum | Number | 0 | The lowest value let through. |
| maximum | Number | 1 | The highest value let through. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Contrast Brightness
FunctionPushes values away from (contrast above 0) or toward (below 0) the middle grey, and shifts them all up or down.
ContrastBrightness -> Texture
texture: Texture
contrast: Number
brightness: NumberTexture ContrastBrightness(
Texture texture,
double contrast = 0.25,
double brightness = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| contrast | Number | 0.25 | -1 flattens to grey, 0 leaves alone, 1 doubles the spread. |
| brightness | Number | 0 | Added to every value. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Curve
FunctionRemaps values through a curve given as heights at evenly spaced points from 0 to 1, passed through smoothly: [0, 1] is no change, [0, 0.2, 1] darkens the middle, [1, 0] inverts.
Curve(texture: Texture, points: Number Array) -> Texture
Texture Curve(Texture texture, double[] points)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| points | Number Array | — | The curve's height at evenly spaced inputs from 0 to 1; at least two. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Delight
FunctionTakes the light a photograph was taken in out of its colour: the broad brightening and darkening that a sun, a sky or a flash laid across the surface, found as the photograph's brightness smoothed wider than any of its own detail and divided out, keeping each place's hue. What is left is the surface's own colour, which a material needs so its renderer can light it afresh.
Delight -> Texture
texture: Texture
scale: Number
strength: Number
tiles: TruthTexture Delight(
Texture texture,
double scale = 128,
double strength = 1,
bool tiles = false)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The photograph. |
| scale | Number | 128 | How broad a change counts as light rather than the surface's own pattern, in pixels of a 1024-pixel texture: larger keeps more of the surface's own large variation. |
| strength | Number | 1 | How much of the light to take out, 0 to 1. |
| tiles | Truth | False | Whether the photograph already tiles, as a scan made for it does: then the light is measured across its edges as if it repeated, so the result still tiles. A plain photograph's light does not repeat, so it is measured up to its edges. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Histogram Range
FunctionSqueezes the values toward a middle: range 1 leaves them, range 0 makes everything the position's value. For calming a busy texture before it is mixed in.
HistogramRange -> Texture
texture: Texture
range: Number
position: NumberTexture HistogramRange(
Texture texture,
double range = 0.5,
double position = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| range | Number | 0.5 | How much of the spread is kept, 0 to 1. |
| position | Number | 0.5 | Where the values gather, 0 to 1. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Histogram Scan
FunctionTurns a gradient into a mask with an edge you can place and soften: everything above the position becomes white, everything below black, over a transition as wide as the contrast leaves it. Sliding the position grows or shrinks the mask - the tool for eroding, wearing and spreading.
HistogramScan -> Texture
texture: Texture
position: Number
contrast: NumberTexture HistogramScan(
Texture texture,
double position = 0.5,
double contrast = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| position | Number | 0.5 | Where the edge is, 0 to 1; higher keeps less white. |
| contrast | Number | 0.5 | How sharp the edge is, 0 (the gradient untouched) to 1 (a hard threshold). |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Histogram Select
FunctionSelects a band of values: white where the value is near the position, falling to black outside the range, softened by contrast. For picking out one level of a height, such as the tops of bricks.
HistogramSelect -> Texture
texture: Texture
position: Number
range: Number
contrast: NumberTexture HistogramSelect(
Texture texture,
double position = 0.5,
double range = 0.25,
double contrast = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| position | Number | 0.5 | The value selected, 0 to 1. |
| range | Number | 0.25 | How wide the selected band is. |
| contrast | Number | 0.5 | How hard the band's edges are. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Invert
FunctionOne minus each value: black becomes white.
Invert(texture: Texture) -> Texture
Texture Invert(Texture texture)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Levels
FunctionRemaps values: what was at the input low becomes the output low, the input high the output high, with gamma bending the middle. The single most used node in procedural texturing.
Levels -> Texture
texture: Texture
inputLow: Number
inputHigh: Number
gamma: Number
outputLow: Number
outputHigh: Number
clamp: TruthTexture Levels(
Texture texture,
double inputLow = 0,
double inputHigh = 1,
double gamma = 1,
double outputLow = 0,
double outputHigh = 1,
bool clamp = true)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| inputLow | Number | 0 | The value that becomes the output low. |
| inputHigh | Number | 1 | The value that becomes the output high. |
| gamma | Number | 1 | Above 1 brightens the middle, below 1 darkens it. |
| outputLow | Number | 0 | The lowest value out. |
| outputHigh | Number | 1 | The highest value out. |
| clamp | Truth | True | Whether values beyond the input range are held at the output ends. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Multiply Add
FunctionMultiplies every value by a factor and adds an offset: the plain arithmetic remap.
MultiplyAdd -> Texture
texture: Texture
multiply: Number
add: NumberTexture MultiplyAdd(
Texture texture,
double multiply = 1,
double add = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| multiply | Number | 1 | The factor. |
| add | Number | 0 | The offset, added after multiplying. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Posterize
FunctionRounds values to a number of even steps: terraces, stylised bands.
Posterize(texture: Texture, steps: Integer) -> Texture
Texture Posterize(Texture texture, int steps = 4)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| steps | Integer | 4 | How many distinct values remain, at least 2. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing
Threshold
FunctionWhite where the value is at or above the threshold, black below: a hard mask.
Threshold(texture: Texture, threshold: Number) -> Texture
Texture Threshold(Texture texture, double threshold = 0.5)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| threshold | Number | 0.5 | The dividing value. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Adjustments
- Package
- Image Processing