Texture Scatter
4 nodes
On this page 4
Splatter
FunctionCopies of a shape scattered at random over the texture - not on a grid - each its own size, turn and brightness: pebbles on a path, leaves, spots of rust, scratches when the shape is a thin capsule.
Signature
Splatter -> Texture
shape: Shape Kind
count: Integer
scale: Number
scaleRandom: Number
stretch: Number
rotationRandom: Number
luminanceRandom: Number
sides: Integer
seed: Integer
size: IntegerTexture Splatter(
ShapeKind shape = ShapeKind.Disc,
int count = 200,
double scale = 0.04,
double scaleRandom = 0.5,
double stretch = 1,
double rotationRandom = 1,
double luminanceRandom = 0.3,
int sides = 6,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| shape | Shape Kind | Disc | The shape each copy is. |
| count | Integer | 200 | How many copies. |
| scale | Number | 0.04 | A copy's size, as a share of the texture's width. |
| scaleRandom | Number | 0.5 | How much the size varies, 0 to 1. |
| stretch | Number | 1 | How much longer than wide each copy is: 1 keeps the shape, 8 makes a scratch of a capsule. |
| rotationRandom | Number | 1 | How far each copy's turn varies, 0 to 1 (a full turn). |
| luminanceRandom | Number | 0.3 | How much darker some copies are. |
| sides | Integer | 6 | For polygons and stars, the number of sides or points. |
| seed | Integer | 0 | Which random scatter. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Scatter
- Package
- Image Processing
Splatter Texture
FunctionCopies of a small texture scattered at random, as Splatter scatters shapes.
Signature
SplatterTexture -> Texture
pattern: Texture
count: Integer
scale: Number
scaleRandom: Number
stretch: Number
rotationRandom: Number
luminanceRandom: Number
seed: Integer
size: IntegerTexture SplatterTexture(
Texture pattern,
int count = 100,
double scale = 0.06,
double scaleRandom = 0.5,
double stretch = 1,
double rotationRandom = 1,
double luminanceRandom = 0.3,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| pattern | Texture | — | The texture each copy is, read as greyscale. |
| count | Integer | 100 | How many copies. |
| scale | Number | 0.06 | A copy's size, as a share of the texture's width. |
| scaleRandom | Number | 0.5 | How much the size varies. |
| stretch | Number | 1 | How much longer than wide each copy is. |
| rotationRandom | Number | 1 | How far each copy's turn varies. |
| luminanceRandom | Number | 0.3 | How much darker some copies are. |
| seed | Integer | 0 | Which random scatter. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Scatter
- Package
- Image Processing
Tile Generator
FunctionA shape repeated on a grid, each copy varied at random in size, turn, position and brightness, and some left out: the general tool behind studs, tiles of pebbles, rows of rivets and diamond plate.
Signature
TileGenerator -> (result: Texture, tileRandom: Texture)
shape: Shape Kind
columns: Integer
rows: Integer
scale: Number
scaleRandom: Number
rotation: Number
rotationRandom: Number
positionRandom: Number
luminanceRandom: Number
dropChance: Number
rowOffset: Number
sides: Integer
seed: Integer
size: IntegerTexture TileGenerator(
out Texture tileRandom,
ShapeKind shape = ShapeKind.Dome,
int columns = 8,
int rows = 8,
double scale = 0.8,
double scaleRandom = 0,
double rotation = 0,
double rotationRandom = 0,
double positionRandom = 0,
double luminanceRandom = 0,
double dropChance = 0,
double rowOffset = 0,
int sides = 6,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| shape | Shape Kind | Dome | The shape each copy is. |
| columns | Integer | 8 | Copies across. |
| rows | Integer | 8 | Copies down. |
| scale | Number | 0.8 | Each copy's size within its cell, 1 filling it. |
| scaleRandom | Number | 0 | How much the size varies, 0 to 1. |
| rotation | Number | 0 | Turns every copy, in degrees. |
| rotationRandom | Number | 0 | How far each copy's turn varies, 0 to 1 (a full turn). |
| positionRandom | Number | 0 | How far each copy strays from its cell's centre, as a share of a cell. |
| luminanceRandom | Number | 0 | How much darker some copies are, 0 to 1. |
| dropChance | Number | 0 | The chance each copy is left out, 0 to 1. |
| rowOffset | Number | 0 | How far every other row is shifted, as a share of a cell. |
| sides | Integer | 6 | For polygons and stars, the number of sides or points. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| tileRandom | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Scatter
- Package
- Image Processing
Tile Sampler
FunctionA small texture - a pebble, a leaf, a bolt head - placed on a grid like the tile generator's copies, each varied.
Signature
TileSampler -> (result: Texture, tileRandom: Texture)
pattern: Texture
columns: Integer
rows: Integer
scale: Number
scaleRandom: Number
rotation: Number
rotationRandom: Number
positionRandom: Number
luminanceRandom: Number
dropChance: Number
rowOffset: Number
seed: Integer
size: IntegerTexture TileSampler(
out Texture tileRandom,
Texture pattern,
int columns = 8,
int rows = 8,
double scale = 0.8,
double scaleRandom = 0,
double rotation = 0,
double rotationRandom = 0,
double positionRandom = 0,
double luminanceRandom = 0,
double dropChance = 0,
double rowOffset = 0,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| pattern | Texture | — | The texture each copy is; its whole area fills a copy, and it is read as greyscale. |
| columns | Integer | 8 | Copies across. |
| rows | Integer | 8 | Copies down. |
| scale | Number | 0.8 | Each copy's size within its cell, 1 filling it. |
| scaleRandom | Number | 0 | How much the size varies. |
| rotation | Number | 0 | Turns every copy, in degrees. |
| rotationRandom | Number | 0 | How far each copy's turn varies. |
| positionRandom | Number | 0 | How far each copy strays, as a share of a cell. |
| luminanceRandom | Number | 0 | How much darker some copies are. |
| dropChance | Number | 0 | The chance each copy is left out. |
| rowOffset | Number | 0 | How far every other row is shifted. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| tileRandom | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Scatter
- Package
- Image Processing