# waves

function in `@dioramajs/text/ribbon`

```ts
import { waves } from '@dioramajs/text/ribbon'
```

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.

```ts
function waves(
  style: Style,
  length: number,
  wind: number,
  folds: number,
): [number, number]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `style` | `Style` |  |
| `length` | `number` |  |
| `wind` | `number` |  |
| `folds` | `number` |  |

Defined in [packages/text/src/ribbon.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/ribbon.ts#L198).
