# optics

function in `@dioramajs/text/lens`

```ts
import { optics } from '@dioramajs/text/lens'
```

The lens for a radius on screen, a magnification and a thickness: the height over the page
that gives `zoom` at the centre, and the glass sized so its rim looks `radius` px from there.

```ts
function optics(
  radius: number,
  zoom: number,
  thickness: number,
  distance: number,
): Optics
```

| Parameter | Type | Description |
| --- | --- | --- |
| `radius` | `number` |  |
| `zoom` | `number` |  |
| `thickness` | `number` |  |
| `distance` | `number` |  |

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