# flips

function in `@dioramajs/text/counter`

```ts
import { flips } from '@dioramajs/text/counter'
```

A flip card from digit `from` (-1 blank) to `to`, landing `time` seconds after it starts: the
digits on its two faces and the angle of the falling flap at `t`, 0 at rest.

```ts
function flips(
  from: number,
  to: number,
  time: number,
  t: number,
): [number, number, number]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `from` | `number` |  |
| `to` | `number` |  |
| `time` | `number` |  |
| `t` | `number` |  |

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