# strips

function in `@dioramajs/text/ribbon`

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

The cloth of a style. A tinted flag or silk is the element's box; a tinted ribbon spans the
box and splits its height between the lines. Without a tint the cloth is the ink with `pad` px
around it: the whole text for a flag or silk, each line on its own for a ribbon.

```ts
function strips(
  r: Pick<Raster, 'quads'>,
  style: Style,
  box: { readonly height: number; readonly width: number },
  tinted: boolean,
  pad: number,
): Strip[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `r` | `Pick<Raster, 'quads'>` |  |
| `style` | `Style` |  |
| `box` | `{ readonly height: number; readonly width: number }` |  |
| `tinted` | `boolean` |  |
| `pad` | `number` |  |

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