# cloth

function in `@dioramajs/text/ribbon`

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

A grid over each strip, `step` px apart (coarser past MAX_VERTICES): positions in box px, the
strip's start x, length, centre y and half height, and its index for the phases.

```ts
function cloth(list: readonly Strip[], step: number): BufferGeometry
```

| Parameter | Type | Description |
| --- | --- | --- |
| `list` | `readonly Strip[]` |  |
| `step` | `number` |  |

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