Studio Yotsuba
Back to Node List

Grid Pattern

grid_pattern

Fills a canvas with repeated blocks, dots, diamonds, checker cells, or an optional stamp image.

Reviewed
Guide available

Input Ports

NameTypeDescription
Stamp
stamp
Image
Optional image stretched to each Stamp cell with nearest-neighbor sampling.
Fill Color
fill_color
Color
Color used for the repeated shape.
Background Color
background_color
Color
Color used behind repeated shapes and transparent Stamp pixels.

Output Ports

NameTypeDescription
Image
output
Image
Generated repeated grid pattern image.
Surface
surface
Surface
Grid pattern as a Surface with height, AO, roughness, and material IDs.

Parameters

NameTypeDefaultRangeDescription / Options
Pattern
pattern
Enum
Block—

Shape or image repeated across the canvas.

  • BlockBlock
    Fill each cell with a rectangular block.
  • CheckerChecker
    Alternate two colors in a checkerboard.
  • DotDot
    Place one rounded dot in each cell.
  • DiamondDiamond
    Place one diamond in each cell.
  • StampStamp
    Stretch the connected image to each cell with nearest-neighbor sampling.
Width
width
Int
1281–2048

Output image width.

Height
height
Int
1281–2048

Output image height.

Cell Width
cell_width
Int
161–512

Width of each repeated cell.

Cell Height
cell_height
Int
161–512

Height of each repeated cell.

Gap X
gap_x
Int
00–256

Horizontal empty space between cells.

Gap Y
gap_y
Int
00–256

Vertical empty space between cells.

Offset X
offset_x
Int
0-2048–2048

Move the whole pattern left or right.

Offset Y
offset_y
Int
0-2048–2048

Move the whole pattern up or down.

Row Offset
row_offset
Int
0-512–512

Shift every other row. Use half a cell for brick-like rows.

Wrap X
wrap_x
Bool
false—

Fit the horizontal pattern phase so the left and right edges can repeat.

Wrap Y
wrap_y
Bool
false—

Fit the vertical pattern phase so the top and bottom edges can repeat.

Fill Color
fill_color
Color
[0.7200000286102295,0.7200000286102295,0.7200000286102295,1]—

Color used for the repeated shape.

Alt Color
alt_color
Color
[0.36000001430511475,0.36000001430511475,0.36000001430511475,1]—

Second color used by checker pattern.

Background Color
background_color
Color
[0,0,0,0]—

Color behind repeated shapes and transparent Stamp pixels.

Shape Material ID
shape_material_id
Text
core:stone—

Material ID assigned to repeated shape pixels in the Surface output.

Alt Material ID
alt_material_id
Text
core:brick—

Material ID assigned to the second checker color.

Background Material ID
background_material_id
Text
core:default—

Material ID assigned to gaps and background pixels.

Shape Surface Height
shape_height_value
Float
0.560–1 / step 0.01

Height value written to repeated shapes.

Background Surface Height
background_height_value
Float
0.40–1 / step 0.01

Height value written to gaps and background.

Shape AO
shape_ao
Float
0.960–1 / step 0.01

AO value for repeated shapes.

Background AO
background_ao
Float
0.750–1 / step 0.01

AO value for gaps and background.

Shape Roughness
shape_roughness
Float
0.750–1 / step 0.01

Roughness value for repeated shapes.

Background Roughness
background_roughness
Float
0.90–1 / step 0.01

Roughness value for gaps and background.

Overview

Fills the canvas at regular intervals with blocks, dots, diamonds, checks, or image stamps. Use it for floor tiles, simple wall patterns, rows of dots, and orderly decorative patterns.

Use row_offset to shift every other row horizontally. A half-cell offset creates a brick-like arrangement. Connect an image to stamp and set pattern = Stamp to place that image in every cell.

Usage tips

  • pattern = Stamp is the most versatile option. Draw a small flower, stone, or icon and tile it for an instant background pattern. The image is stretched over each full cell with nearest-neighbor sampling, then its transparent and translucent pixels are composited over background_color with straight-alpha SrcOver.
  • Checker with two colors is the shortest route to a transparency-check background or checkerboard floor.
  • For a tileable asset, turn wrap_x/y ON and inspect it with tile_preview, following the same workflow as brick_pattern.
  • For rows of dots such as a stippled star field, use Dot + a large gap + a transparent background_color.

Common pitfalls

  • Cell dimensions change slightly: with wrap ON, dimensions adjust automatically so a whole number of periods fits the output (see below). For exact cell dimensions, make the canvas a multiple of the pattern period.
  • A stamp's aspect ratio changes: every stamp is stretched to the full cell with nearest-neighbor sampling. Match the source aspect ratio to cell_width / cell_height when you need to preserve its proportions.

Compatibility

  • v4 composites transparent and translucent Stamp pixels over background_color. Keep background_color transparent to preserve the transparent-pixel result from v3 and earlier.

Examples

  • Create a checkerboard floor with pattern = Checker, cell_width = 8, and cell_height = 8.
  • Create a regular dot background with pattern = Dot, gap_x = 8, and gap_y = 8.
  • Set row_offset to cell_width / 2 for a wall base with half-cell-shifted blocks.
  • Connect a small decorative image to stamp and place it evenly with pattern = Stamp.
  • Connect surface to Surface Light Preview and inspect tile relief from the difference between shape_height_value and background_height_value.
  • With pattern = Checker, assign different materials to shape_material_id and alt_material_id, then use the material-ID preview to confirm that they alternate.

Looping

When wrap_x / wrap_y is on, the pattern is cropped at a period that makes its edges more likely to join when tiled in every direction. If width or height is not an exact multiple of the cell period, the node does not simply crop an infinite pattern at the specified cell width. Instead, it stretches or shrinks the cells slightly so a whole number of repetitions fits the output.

Because Checker and row_offset can shift color or row phase at the edge, looping internally selects a period with an even number of repetitions.

Related nodes

  • brick_pattern — block walls with mortar and color variation
  • path_array — place along a path rather than a grid
  • pixel_canvas — supplies stamp artwork
  • tile_preview — check looping
Back to Node List