Wave
Generates a texture of stripes, rings or spokes from a sine, triangle, square or sawtooth wave.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | Texture | The pattern, in gray. |
Parameters
| Name | Type | Description |
|---|---|---|
| Resolution | Vector 2 Int | The width and height of the output in pixels. |
| Shape | Enum | The shape of the pattern.Choices: Flat, Concentric, Radial |
| Waveform | Enum | The 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 |
| Frequency | Float | How many waves there are, across the width for Flat and Concentric and around the circle for Radial. |
| Phase | Float | Slides the wave along, in waves. |
| Pulse Width | Float | The part of each wave a square wave spends light, or a triangle wave spends rising, between 0 and 1. |
| Angle | Float | Turns the pattern around its center, in degrees, counterclockwise. |
| Center | Vector 2 | The point the pattern is drawn around, in pixels from the middle of the texture, with up as positive. |
| Range | Vector 2 | The gray at the bottom and the top of the wave, between 0 for black and 1 for white. |
| Edgesadvanced | Enum | Whether hard edges are smoothed over the pixel they cross. Hard makes a square wave exactly black and white.Choices: Smooth, Hard |
| Transformadvanced | Transform 2D | Moves, turns and scales the finished pattern, after Center and Angle. |
| Formatadvanced | Enum | The 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