genart.dev
Design Mode

Layers

Layer types, properties, transforms, and blending in the design layer stack.

Every design layer has these core attributes:

Layer Structure

AttributeTypeDescription
idstringAuto-generated unique ID
typestringPlugin layer type (e.g. typography:text, filter:grain)
namestringDisplay name
visiblebooleanWhether the layer renders
lockedbooleanPrevents accidental edits
opacitynumber0 (transparent) to 1 (opaque)
blendModestringCSS blend mode (default: normal)
propertiesobjectType-specific properties
transformobjectPosition, size, rotation, scale

Transforms

PropertyTypeDefaultDescription
xnumber0X position (pixels)
ynumber0Y position (pixels)
widthnumbercanvas widthLayer width
heightnumbercanvas heightLayer height
rotationnumber0Rotation in degrees
scaleXnumber1Horizontal scale
scaleYnumber1Vertical scale
anchorXnumber0.5Anchor X (0=left, 1=right)
anchorYnumber0.5Anchor Y (0=top, 1=bottom)

Blend Modes

All 16 CSS blend modes are supported:

normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color, luminosity

Layer Ordering

Layers render bottom-to-top. Index 0 is the bottom layer (renders first, closest to the algorithm output). The top layer renders last and appears on top.

Use design_reorder_layers to change a layer's position in the stack.

Visibility and Locking

  • Hidden layers (visible: false) are skipped during compositing but retained in the definition
  • Locked layers (locked: true) cannot be modified through update tools — unlock first