# pieces

function in `@dioramajs/text/rotator`

```ts
import { pieces } from '@dioramajs/text/rotator'
```

Where the pieces of radius turn are at `progress` (0 the word leaving, flat; 1 the word coming, flat),
back to front. `height` is the element's box height. Under reduced motion the words fade.

```ts
function pieces(
  style: Style,
  axis: Axis,
  t: number,
  around: Around,
  height: number,
  reduced?: boolean,
  perspective?: number,
): Piece[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `style` | `Style` |  |
| `axis` | `Axis` |  |
| `t` | `number` |  |
| `around` | `Around` |  |
| `height` | `number` |  |
| `reduced?` | `boolean` |  |
| `perspective?` | `number` |  |

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