Skip to content

Coord.wavy ​

Warps the plane with a sinusoidal ripple, so a straight edge is drawn as a wave. Used for decorative geometry — a balloon string, a flag, a squiggly connector.

python
from gofish import layer, rect, Coord

layer([rect(w=4, h=120)], coord=Coord.wavy(), x=0, y=0).render(w=200, h=200)

Signature ​

python
Coord.wavy() -> Coord

Pass it as the coord of a layer (or of a chart) to warp everything inside that scope.

Parameters ​

A sinusoidal warp of the plane. No options.

No options.