Wave

Generates a texture of stripes, rings or spokes from a sine, triangle, square or sawtooth wave.

Outputs

NameTypeDescription
OutputTextureThe pattern, in gray.

Parameters

NameTypeDescription
ResolutionVector 2 IntThe width and height of the output in pixels.
ShapeEnumThe shape of the pattern.Choices: Flat, Concentric, Radial
WaveformEnumThe shape of one wave. Sine and Triangle fade between dark and light, Square has hard edges and Sawtooth ramps up and drops.Choices: Sine, Triangle, Square, Sawtooth
FrequencyFloatHow many waves there are, across the width for Flat and Concentric and around the circle for Radial.
PhaseFloatSlides the wave along, in waves.
Pulse WidthFloatThe part of each wave a square wave spends light, or a triangle wave spends rising, between 0 and 1.
AngleFloatTurns the pattern around its center, in degrees, counterclockwise.
CenterVector 2The point the pattern is drawn around, in pixels from the middle of the texture, with up as positive.
RangeVector 2The gray at the bottom and the top of the wave, between 0 for black and 1 for white.
EdgesadvancedEnumWhether hard edges are smoothed over the pixel they cross. Hard makes a square wave exactly black and white.Choices: Smooth, Hard
TransformadvancedTransform 2DMoves, turns and scales the finished pattern, after Center and Angle.
FormatadvancedEnumThe pixel format of the output. Auto is one channel of gray.

The Wave operator draws a repeating pattern of waves in gray. It is a starting point rather than a finished image: color it with Color Ramp, lay it over a picture with Blend, or bend another texture with it in Displace.

In Flat mode, the waves are straight stripes. In Concentric mode, they are rings spreading out from the center. In Radial mode, they are spokes around the center, and the frequency should be a whole number so the last spoke meets the first.

Animate the phase to make the pattern move. A phase running from 0 to 1 moves it by exactly one wave, so it loops without a jump.

See also LFO, Noise, Color Ramp.

Keywords: stripes, rings, spokes, pattern, gradient, generator, waves, zebra, sine, square, lines, grid