Texture Patterns
11 nodes
On this page 11
Basket Weave
FunctionBasket weave: square blocks of parallel pieces, alternating between across and down like a checkerboard.
BasketWeave -> (result: Texture, cellRandom: Texture, gapMask: Texture)
blocks: Integer
piecesPerBlock: Integer
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture BasketWeave(
out Texture cellRandom,
out Texture gapMask,
int blocks = 4,
int piecesPerBlock = 3,
double gap = 0.1,
double bevel = 0.2,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.1,
double tilt = 0.1,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| blocks | Integer | 4 | Blocks across. |
| piecesPerBlock | Integer | 3 | Parallel pieces in each block. |
| gap | Number | 0.1 | The joint's width, as a share of a piece's width. |
| bevel | Number | 0.2 | How far in the edge rounds, as a share of a piece's width. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.1 | How much lower some pieces sit. |
| tilt | Number | 0.1 | How much each piece leans. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Bricks
FunctionBricks in running bond: rows of bricks, every other row offset, with mortar between and bevelled edges.
Bricks -> (result: Texture, cellRandom: Texture, gapMask: Texture)
columns: Integer
rows: Integer
offset: Number
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture Bricks(
out Texture cellRandom,
out Texture gapMask,
int columns = 6,
int rows = 16,
double offset = 0.5,
double gap = 0.12,
double bevel = 0.2,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.15,
double tilt = 0.2,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| columns | Integer | 6 | Bricks across. |
| rows | Integer | 16 | Rows of bricks down. |
| offset | Number | 0.5 | How far every other row is shifted, as a share of a brick: 0.5 is running bond, 0 stack bond. |
| gap | Number | 0.12 | The mortar's width, as a share of a brick's height. |
| bevel | Number | 0.2 | How far in the edge rounds, as a share of a brick's height. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.15 | How much lower some bricks sit, 0 to 1. |
| tilt | Number | 0.2 | How much each brick leans to one side, 0 to 1. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Checker
FunctionA checkerboard of alternating black and white squares.
Checker(count: Integer, size: Integer) -> Texture
Texture Checker(int count = 8, int size = 1024)
Parameters
| name | type | default | description |
|---|---|---|---|
| count | Integer | 8 | Squares across. |
| 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 Patterns
- Package
- Image Processing
Herringbone
FunctionHerringbone: rectangular pieces laid in alternating zig-zag stairs, as parquet and brick paving are. The count is rounded to the pattern's period so it tiles.
Herringbone -> (result: Texture, cellRandom: Texture, gapMask: Texture)
count: Integer
length: Integer
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture Herringbone(
out Texture cellRandom,
out Texture gapMask,
int count = 16,
int length = 3,
double gap = 0.08,
double bevel = 0.15,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.1,
double tilt = 0.15,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| count | Integer | 16 | Piece widths across the texture; rounded to a multiple of twice the length. |
| length | Integer | 3 | How many widths long a piece is. |
| gap | Number | 0.08 | The joint's width, as a share of a piece's width. |
| bevel | Number | 0.15 | How far in the edge rounds, as a share of a piece's width. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.1 | How much lower some pieces sit. |
| tilt | Number | 0.15 | How much each piece leans. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Hexagons
FunctionHexagonal tiles, pointy side up. Rows are made even so they tile; the hexagons are stretched slightly to fit a square.
Hexagons -> (result: Texture, cellRandom: Texture, gapMask: Texture)
columns: Integer
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture Hexagons(
out Texture cellRandom,
out Texture gapMask,
int columns = 8,
double gap = 0.06,
double bevel = 0.12,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.1,
double tilt = 0.1,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| columns | Integer | 8 | Hexagons across. |
| gap | Number | 0.06 | The gap's width, as a share of a hexagon's width. |
| bevel | Number | 0.12 | How far in the edge rounds, as a share of a hexagon's width. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.1 | How much lower some hexagons sit. |
| tilt | Number | 0.1 | How much each hexagon leans. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Planks
FunctionFloor planks: rows of boards of random lengths with staggered joints, as a timber floor is laid.
Planks -> (result: Texture, cellRandom: Texture, gapMask: Texture)
rows: Integer
boardsPerRow: Integer
lengthRandomness: Number
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture Planks(
out Texture cellRandom,
out Texture gapMask,
int rows = 8,
int boardsPerRow = 2,
double lengthRandomness = 0.6,
double gap = 0.05,
double bevel = 0.1,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.05,
double tilt = 0.1,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| rows | Integer | 8 | Rows of boards down. |
| boardsPerRow | Integer | 2 | Boards in each row, on average. |
| lengthRandomness | Number | 0.6 | How much board lengths vary, 0 to 1. |
| gap | Number | 0.05 | The joint's width, as a share of a board's width. |
| bevel | Number | 0.1 | How far in the edge rounds, as a share of a board's width. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.05 | How much lower some boards sit. |
| tilt | Number | 0.1 | How much each board leans. |
| seed | Integer | 0 | Which random lengths. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Scales
FunctionOverlapping scales, each row lapping over the one above: fish, dragons, roof shingles cut round.
Scales -> (result: Texture, cellRandom: Texture)
columns: Integer
rows: Integer
roundness: Number
seed: Integer
size: IntegerTexture Scales(
out Texture cellRandom,
int columns = 10,
int rows = 14,
double roundness = 0.6,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| columns | Integer | 10 | Scales across. |
| rows | Integer | 14 | Rows of scales down; made even so they tile. |
| roundness | Number | 0.6 | How domed each scale is, 0 (flat) to 1. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Stones
FunctionIrregular stones, each a cell of a random pattern of points with a gap between: flagstones and crazy paving at low jitter-free counts, cobbles with a round bevel.
Stones -> (result: Texture, cellRandom: Texture, gapMask: Texture)
count: Integer
randomness: Number
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture Stones(
out Texture cellRandom,
out Texture gapMask,
int count = 8,
double randomness = 0.9,
double gap = 0.06,
double bevel = 0.3,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.2,
double tilt = 0.25,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| count | Integer | 8 | Stones across. |
| randomness | Number | 0.9 | How irregular the stones are, 0 (a grid) to 1. |
| gap | Number | 0.06 | The gap's width, as a share of a stone's size. |
| bevel | Number | 0.3 | How far in the edge rounds, as a share of a stone's size. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.2 | How much lower some stones sit. |
| tilt | Number | 0.25 | How much each stone leans. |
| seed | Integer | 0 | Which random stones. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Stripes
FunctionParallel stripes, hard or soft: corrugation, pinstripes, ribbed rubber.
Stripes -> Texture
count: Integer
width: Number
softness: Number
vertical: Truth
size: IntegerTexture Stripes(
int count = 16,
double width = 0.5,
double softness = 0.1,
bool vertical = true,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| count | Integer | 16 | Stripes across the texture. |
| width | Number | 0.5 | How much of each period is stripe, 0 to 1. |
| softness | Number | 0.1 | How soft the stripe's edges are, 0 (hard) to 1 (a wave). |
| vertical | Truth | True | Stripes running down rather than across. |
| 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 Patterns
- Package
- Image Processing
Tiles
FunctionSquare or rectangular tiles in a grid, optionally offset row by row: floor and wall tiles, paving slabs.
Tiles -> (result: Texture, cellRandom: Texture, gapMask: Texture)
columns: Integer
rows: Integer
offset: Number
gap: Number
bevel: Number
profile: Bevel Profile
heightVariation: Number
tilt: Number
seed: Integer
size: IntegerTexture Tiles(
out Texture cellRandom,
out Texture gapMask,
int columns = 4,
int rows = 4,
double offset = 0,
double gap = 0.04,
double bevel = 0.06,
BevelProfile profile = BevelProfile.Round,
double heightVariation = 0.05,
double tilt = 0.1,
int seed = 0,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| columns | Integer | 4 | Tiles across. |
| rows | Integer | 4 | Tiles down. |
| offset | Number | 0 | How far every other row is shifted, as a share of a tile. |
| gap | Number | 0.04 | The grout's width, as a share of a tile's shorter side. |
| bevel | Number | 0.06 | How far in the edge rounds, as a share of a tile's shorter side. |
| profile | Bevel Profile | Round | The bevel's cross-section. |
| heightVariation | Number | 0.05 | How much lower some tiles sit, 0 to 1. |
| tilt | Number | 0.1 | How much each tile leans, 0 to 1. |
| seed | Integer | 0 | Which random variation. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| cellRandom | Texture |
| gapMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing
Weave
FunctionWoven cloth: threads running across and down, each passing over one and under the next. Plain weave at 1, twill's diagonals at 2 or more.
Weave -> (result: Texture, warpMask: Texture)
threads: Integer
over: Integer
threadWidth: Number
size: IntegerTexture Weave(
out Texture warpMask,
int threads = 32,
int over = 1,
double threadWidth = 0.85,
int size = 1024)Parameters
| name | type | default | description |
|---|---|---|---|
| threads | Integer | 32 | Threads across the texture. |
| over | Integer | 1 | How many threads each thread passes over before going under: 1 is plain weave, 2 or 3 twill. |
| threadWidth | Number | 0.85 | How much of its lane a thread fills, 0 to 1. |
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
| warpMask | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Patterns
- Package
- Image Processing