Wave
wave()
Draw a wave along a path using a catmull-rom curve
The number of phases can be controlled via the segments
or segment-length
style key, and the width via amplitude
.
line((0,0), (2,1), stroke: gray)
cetz.decorations.wave(line((0,0), (2,1)), amplitude: .25, start: 10%, stop: 90%)
Styling
Root: wave
- tension (float) = 0.5 Catmull-Rom curve tension, see Catmull