Stripes
Parallel-lines pattern field — alternating on/off bands with direction, spacing, width, and phase.
Category: Fields Menu path: Fields > Stripes
Ports
| Port | Type | Direction | Description |
|---|---|---|---|
scalar | scalar | output | Value at comp center (0 or 1) |
scalarField | scalarField | output | Binary 0/1 scalar field |
Parameters
| Param | Type | Default | Description |
|---|---|---|---|
spacing | scalar | 50 | Period of the stripe pattern in comp pixels (stripe + gap together) |
width | scalar | 0.5 | Stripe width as a fraction of spacing, clamped [0, 1]. 0 = all gap, 1 = solid |
angle | scalar | 0° | Stripe direction: at 0° stripes run horizontal (along x-axis); rotate around center |
center | vec2 | (0, 0) | Rotation pivot and phase origin |
phase | scalar | 0 | Fractional 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.
Related Nodes
- 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