waves function
Amplitude (px) and wave number (rad/px) for cloth `length` px long: `folds` waves along it, as steep as the style allows at `wind` 1.
import { waves } from '@dioramajs/text/ribbon'.
function waves(
style: Style,
length: number,
wind: number,
folds: number,
): [number, number]Parameters
| Name | Type | Description |
|---|---|---|
style | Style | |
length | number | |
wind | number | |
folds | number |
Defined in packages/text/src/ribbon.ts.