Skip to content

Checkerboard

2D checkerboard pattern field — alternating 0/1 cells on a rotated grid with per-axis cell size and phase.

Category: Fields Menu path: Fields > Checkerboard

Ports

PortTypeDirectionDescription
scalarscalaroutputValue at comp center (0 or 1)
scalarFieldscalarFieldoutputBinary 0/1 scalar field

Parameters

ParamTypeDefaultDescription
cellX / cellYscalar50Cell dimensions in comp pixels
centervec2(0, 0)Rotation pivot and phase origin
anglescalarRotation of the grid around center, in degrees
phaseX / phaseYscalar0Fractional offset in units of cells along each axis. Animate for scrolling/flicker

How It Works

Samples are rotated back by -angle around center, then divided by cell dimensions. The integer floor gives cell coordinates; parity of their sum (checker rule) determines the output.

The output is hard-edged — no antialiasing. For smoothed versions, combine downstream with a Colorize ramp or FieldMath Multiply with a soft mask.

Usage Examples

Basic: Background pattern

Checkerboard → DrawField (scalar) → Output. Classic chequerboard at whatever cell size you set.

Creative: Scrolling

Animate phaseX from 0 → 1 → the pattern slides across one cell. Combine X + Y phase for diagonal scrolling.

Creative: Mask

Wire Checkerboard.scalarField → ShapeAttributes target=Opacity source=Field on a chain of shapes — every other shape becomes transparent.

  • Stripes — 1D parallel-line version; checkerboard is the 2D analogue
  • Noise — continuous alternative; checker is binary
  • Colorize — map 0/1 to any two colours via a two-stop ramp

Caddis — professional motion design.