Divooka Reference

Texture Patterns

11 nodes

On this page 11

Basket Weave

Function

Basket weave: square blocks of parallel pieces, alternating between across and down like a checkerboard.

Signature
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: Integer
Texture 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

nametypedefaultdescription
blocksInteger4Blocks across.
piecesPerBlockInteger3Parallel pieces in each block.
gapNumber0.1The joint's width, as a share of a piece's width.
bevelNumber0.2How far in the edge rounds, as a share of a piece's width.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.1How much lower some pieces sit.
tiltNumber0.1How much each piece leans.
seedInteger0Which random variation.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Bricks

Function

Bricks in running bond: rows of bricks, every other row offset, with mortar between and bevelled edges.

Signature
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: Integer
Texture 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

nametypedefaultdescription
columnsInteger6Bricks across.
rowsInteger16Rows of bricks down.
offsetNumber0.5How far every other row is shifted, as a share of a brick: 0.5 is running bond, 0 stack bond.
gapNumber0.12The mortar's width, as a share of a brick's height.
bevelNumber0.2How far in the edge rounds, as a share of a brick's height.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.15How much lower some bricks sit, 0 to 1.
tiltNumber0.2How much each brick leans to one side, 0 to 1.
seedInteger0Which random variation.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Checker

Function

A checkerboard of alternating black and white squares.

Signature
Checker(count: Integer, size: Integer) -> Texture
Texture Checker(int count = 8, int size = 1024)

Parameters

nametypedefaultdescription
countInteger8Squares across.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Herringbone

Function

Herringbone: 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.

Signature
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: Integer
Texture 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

nametypedefaultdescription
countInteger16Piece widths across the texture; rounded to a multiple of twice the length.
lengthInteger3How many widths long a piece is.
gapNumber0.08The joint's width, as a share of a piece's width.
bevelNumber0.15How far in the edge rounds, as a share of a piece's width.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.1How much lower some pieces sit.
tiltNumber0.15How much each piece leans.
seedInteger0Which random variation.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Hexagons

Function

Hexagonal tiles, pointy side up. Rows are made even so they tile; the hexagons are stretched slightly to fit a square.

Signature
Hexagons -> (result: Texture, cellRandom: Texture, gapMask: Texture)
    columns: Integer
    gap: Number
    bevel: Number
    profile: Bevel Profile
    heightVariation: Number
    tilt: Number
    seed: Integer
    size: Integer
Texture 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

nametypedefaultdescription
columnsInteger8Hexagons across.
gapNumber0.06The gap's width, as a share of a hexagon's width.
bevelNumber0.12How far in the edge rounds, as a share of a hexagon's width.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.1How much lower some hexagons sit.
tiltNumber0.1How much each hexagon leans.
seedInteger0Which random variation.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Planks

Function

Floor planks: rows of boards of random lengths with staggered joints, as a timber floor is laid.

Signature
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: Integer
Texture 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

nametypedefaultdescription
rowsInteger8Rows of boards down.
boardsPerRowInteger2Boards in each row, on average.
lengthRandomnessNumber0.6How much board lengths vary, 0 to 1.
gapNumber0.05The joint's width, as a share of a board's width.
bevelNumber0.1How far in the edge rounds, as a share of a board's width.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.05How much lower some boards sit.
tiltNumber0.1How much each board leans.
seedInteger0Which random lengths.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Scales

Function

Overlapping scales, each row lapping over the one above: fish, dragons, roof shingles cut round.

Signature
Scales -> (result: Texture, cellRandom: Texture)
    columns: Integer
    rows: Integer
    roundness: Number
    seed: Integer
    size: Integer
Texture Scales(
    out Texture cellRandom,
    int columns = 10,
    int rows = 14,
    double roundness = 0.6,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
columnsInteger10Scales across.
rowsInteger14Rows of scales down; made even so they tile.
roundnessNumber0.6How domed each scale is, 0 (flat) to 1.
seedInteger0Which random variation.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Stones

Function

Irregular 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.

Signature
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: Integer
Texture 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

nametypedefaultdescription
countInteger8Stones across.
randomnessNumber0.9How irregular the stones are, 0 (a grid) to 1.
gapNumber0.06The gap's width, as a share of a stone's size.
bevelNumber0.3How far in the edge rounds, as a share of a stone's size.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.2How much lower some stones sit.
tiltNumber0.25How much each stone leans.
seedInteger0Which random stones.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Stripes

Function

Parallel stripes, hard or soft: corrugation, pinstripes, ribbed rubber.

Signature
Stripes -> Texture
    count: Integer
    width: Number
    softness: Number
    vertical: Truth
    size: Integer
Texture Stripes(
    int count = 16,
    double width = 0.5,
    double softness = 0.1,
    bool vertical = true,
    int size = 1024)

Parameters

nametypedefaultdescription
countInteger16Stripes across the texture.
widthNumber0.5How much of each period is stripe, 0 to 1.
softnessNumber0.1How soft the stripe's edges are, 0 (hard) to 1 (a wave).
verticalTruthTrueStripes running down rather than across.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Tiles

Function

Square or rectangular tiles in a grid, optionally offset row by row: floor and wall tiles, paving slabs.

Signature
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: Integer
Texture 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

nametypedefaultdescription
columnsInteger4Tiles across.
rowsInteger4Tiles down.
offsetNumber0How far every other row is shifted, as a share of a tile.
gapNumber0.04The grout's width, as a share of a tile's shorter side.
bevelNumber0.06How far in the edge rounds, as a share of a tile's shorter side.
profileBevel ProfileRoundThe bevel's cross-section.
heightVariationNumber0.05How much lower some tiles sit, 0 to 1.
tiltNumber0.1How much each tile leans, 0 to 1.
seedInteger0Which random variation.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
cellRandomTexture
gapMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing

Weave

Function

Woven 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.

Signature
Weave -> (result: Texture, warpMask: Texture)
    threads: Integer
    over: Integer
    threadWidth: Number
    size: Integer
Texture Weave(
    out Texture warpMask,
    int threads = 32,
    int over = 1,
    double threadWidth = 0.85,
    int size = 1024)

Parameters

nametypedefaultdescription
threadsInteger32Threads across the texture.
overInteger1How many threads each thread passes over before going under: 1 is plain weave, 2 or 3 twill.
threadWidthNumber0.85How much of its lane a thread fills, 0 to 1.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
warpMaskTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Patterns
Package
Image Processing