Skip to content

Stripes ​

Parallel-lines pattern field — alternating on/off bands with direction, spacing, width, and phase.

Category: Fields Menu path: Fields > Stripes

Ports ​

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

Parameters ​

ParamTypeDefaultDescription
spacingscalar50Period of the stripe pattern in comp pixels (stripe + gap together)
widthscalar0.5Stripe width as a fraction of spacing, clamped [0, 1]. 0 = all gap, 1 = solid
anglescalar0°Stripe direction: at 0° stripes run horizontal (along x-axis); rotate around center
centervec2(0, 0)Rotation pivot and phase origin
phasescalar0Fractional offset in units of spacing. Animate for scrolling

How It Works ​

Samples are rotated back by -angle around center, then projected onto the stripe-normal axis (y). Each period is a stripe of width spacing × width followed by a gap of the remainder. Output is 1 inside a stripe, 0 outside.

Like Checkerboard, the output is hard-edged — no antialiasing. Use Colorize or FieldMath downstream for smoothing.

Usage Examples ​

Basic: Horizontal bands ​

Stripes → DrawField (scalar). Horizontal stripes at default 50px spacing.

Basic: Diagonal pattern ​

Set angle to 45°. Stripes run at 45°.

Creative: Scrolling ​

Animate phase from 0 → 1 → stripes slide by one period.

Creative: Barcode density mask ​

Wire Stripes.scalarField → FieldMath Multiply with a gradient; the stripe pattern modulates the gradient into a barcode-like density map.

  • Checkerboard — 2D analogue; stripes is the 1D pattern
  • Oscillate — smooth wave patterns with the same direction/phase controls; stripes is the square-wave version with binary output