# travel

function in `@dioramajs/text/tunnel`

```ts
import { travel } from '@dioramajs/text/tunnel'
```

Where the camera is at `pin` (0..1), in phrases: 0 on the first, `count - 1` on the last. It
slows down on each phrase, so each one holds still to be read, and speeds up between them.

```ts
function travel(pin: number, count: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `pin` | `number` |  |
| `count` | `number` |  |

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