Texture Warps
5 nodes
On this page 5
Directional Warp
FunctionPushes each pixel one way by an amount read from a second texture: white pushes the full distance, black not at all. Ripples, leaning grass, streaks.
Signature
DirectionalWarp -> Texture
texture: Texture
by: Texture
angle: Number
distance: NumberTexture DirectionalWarp(
Texture texture,
Texture by,
double angle = 0,
double distance = 32)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture to distort. |
| by | Texture | — | How far each pixel is pushed, 0 to 1. |
| angle | Number | 0 | The direction, in degrees: 0 right, 90 down. |
| distance | Number | 32 | The full push, in pixels of a 1024-pixel texture. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Warps
- Package
- Image Processing
Slope Blur
FunctionSmears a texture along the slopes of another, step by step, following each slope as it bends: the chipped edges of stone, eroded rock, paint that has run. Min eats into bright areas from their slopes, Max spreads them, Blur smears.
Signature
SlopeBlur -> Texture
texture: Texture
slope: Texture
samples: Integer
intensity: Number
mode: Slope Blur ModeTexture SlopeBlur(
Texture texture,
Texture slope,
int samples = 8,
double intensity = 8,
SlopeBlurMode mode = SlopeBlurMode.Blur)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture to smear. |
| slope | Texture | — | The texture whose slopes are followed. |
| samples | Integer | 8 | How many steps; more is smoother and slower. |
| intensity | Number | 8 | How far each step goes: at 1, a slope rising the full height across the texture steps 1 pixel of a 1024-pixel texture. |
| mode | Slope Blur Mode | Blur | How the readings along the path combine. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Warps
- Package
- Image Processing
Swirl
FunctionTwists a texture round its centre, most at the middle and not at all at the radius.
Signature
Swirl -> Texture
texture: Texture
turns: Number
radius: NumberTexture Swirl(
Texture texture,
double turns = 0.5,
double radius = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture. |
| turns | Number | 0.5 | How far the centre turns, in whole turns; negative twists the other way. |
| radius | Number | 0.5 | Where the twist ends, as a share of the width. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Warps
- Package
- Image Processing
Vector Warp
FunctionPushes each pixel by a vector field: the first texture's values move it across, the second's down, both centred on middle grey.
Signature
VectorWarp -> Texture
texture: Texture
across: Texture
down: Texture
distance: NumberTexture VectorWarp(
Texture texture,
Texture across,
Texture down,
double distance = 32)Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture to distort. |
| across | Texture | — | Movement across, middle grey none. |
| down | Texture | — | Movement down, middle grey none. |
| distance | Number | 32 | The movement at white or black, in pixels of a 1024-pixel texture. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Warps
- Package
- Image Processing
Warp
FunctionPushes each pixel along the slope of a second texture: where it rises, the image slides. Small amounts roughen edges; large ones swirl like marble.
Signature
Warp -> Texture
texture: Texture
by: Texture
intensity: NumberTexture Warp(Texture texture, Texture by, double intensity = 2)
Parameters
| name | type | default | description |
|---|---|---|---|
| texture | Texture | — | The texture to distort. |
| by | Texture | — | The texture whose slope pushes. |
| intensity | Number | 2 | How far: at 1, a slope that rises the full height across the whole texture pushes 4 pixels of a 1024-pixel texture. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Warps
- Package
- Image Processing