genart.dev
Plugins

Patterns

29 pattern types — fills, stripes, dots, tiles, Japanese motifs, terrazzo, and custom vector patterns.

Geometric and organic repeat patterns with 29 layer types, 153 presets, and spatial shading. Includes hatching, stippling, tiling, Japanese traditional patterns, and custom vector pattern definition.

Installation

npm install @genart-dev/plugin-patterns

Layer Types

Type IDDisplay NameDescription
patterns:fillFillGenerative fill (hatch, stipple, crosshatch, wave, grid)
patterns:stripeStripeParallel lines with configurable spacing and angle
patterns:dotDotDot grids and scatter patterns
patterns:checkerCheckerCheckerboard with configurable cell size
patterns:waveWaveSinusoidal wave lines
patterns:crosshatch-geoCrosshatchPerpendicular line hatching for tonal shading
patterns:herringboneHerringboneZigzag interlocking pattern
patterns:tileTileSeamless tiling (brick, basketweave, hex, scale, moroccan)
patterns:customCustomUser-defined vector patterns from drawing commands
patterns:triangleTriangleTriangle grid pattern
patterns:diamondDiamondDiamond grid pattern
patterns:hexagonHexagonHexagonal grid pattern
patterns:starStarStar motif pattern
patterns:circleCircleCircle/ring pattern
patterns:japaneseJapaneseTraditional Japanese patterns (asanoha, seigaiha, shippo, kumiko)
patterns:latticeLatticeLattice grid pattern
patterns:plaidPlaidOverlapping stripe groups
patterns:cubeCubeIsometric cube pattern
patterns:leafLeafLeaf motif pattern
patterns:floralFloralFloral motif pattern
patterns:memphisMemphisMemphis-style geometric shapes
patterns:eyeEyeEye motif pattern
patterns:spiralSpiralSpiral motif pattern
patterns:terrazzoTerrazzoAggregate stone-like scattered colored chips
patterns:squareSquareSquare grid pattern
patterns:octagonOctagonOctagon grid pattern
patterns:scaleScaleFish/dragon scale overlapping arcs
patterns:chainlinkChainlinkInterlocking chain pattern
patterns:ethnicEthnicEthnic decorative patterns

Properties

patterns:fill

PropertyTypeDefaultDescription
strategyselect"hatch"Fill strategy: hatch, stipple, crosshatch, wave, grid
anglenumber45Line angle (0–360°)
spacingnumber8Line/dot spacing (2–100px)
lineWidthnumber1Line width (0.5–20px)
colorcolor"#000000"Pattern color
backgroundColorcolor"#ffffff"Background fill
regionstring'{"type":"bounds"}'Clip region (bounds, rect, ellipse, polygon)
opacitynumber1Layer opacity (0–1)

patterns:terrazzo

PropertyTypeDefaultDescription
styleselect"classic"classic, bold, blob
sizenumber16Chip size (4–80px)
color1color"#2c3e50"Chip color 1
color2color"#ecf0f1"Chip color 2
color3color"#c0392b"Chip color 3
densitynumber40Chip density (5–100%)
rotationnumber0Pattern rotation (0–360°)
opacitynumber1Layer opacity (0–1)

patterns:crosshatch-geo

PropertyTypeDefaultDescription
angle1number45First line set angle (0–360°)
angle2number135Second line set angle (0–360°)
spacingnumber10Line spacing (2–100px)
lineWidthnumber1Line width (0.5–20px)
colorcolor"#000000"Line color
backgroundColorcolor"#ffffff"Background fill
opacitynumber1Layer opacity (0–1)

patterns:tile

PropertyTypeDefaultDescription
tileShapeselect"brick"brick, basketweave, hex, scale, moroccan
sizenumber40Tile size (8–200px)
gapnumber2Gap between tiles (0–20px)
rotationnumber0Pattern rotation (0–360°)
color1color"#d4c5a9"Primary tile color
color2color"#8b7d6b"Background/mortar color
opacitynumber1Layer opacity (0–1)

MCP Tools

ToolDescription
list_pattern_presetsList all 153 presets grouped by category
add_patternAdd a pattern layer by type and preset or properties
update_patternUpdate properties on an existing pattern layer
set_pattern_regionClip pattern to bounds, rect, ellipse, or polygon
set_pattern_shadingValue-based shading (uniform, linear, radial, noise, algorithm)
tile_patternConfigure tiling shape, size, gap, and colors
create_patternDefine custom vector pattern from drawing commands

Example

{
  "tool": "design_add_layer",
  "arguments": {
    "type": "patterns:terrazzo",
    "properties": {
      "style": "classic",
      "size": 12,
      "color1": "#2c3e50",
      "color2": "#e74c3c",
      "color3": "#f39c12",
      "density": 50
    }
  }
}