optics function
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.
import { optics } from '@dioramajs/text/lens'.
function optics(
radius: number,
zoom: number,
thickness: number,
distance: number,
): OpticsParameters
| Name | Type | Description |
|---|---|---|
radius | number | |
zoom | number | |
thickness | number | |
distance | number |
Defined in packages/text/src/lens.ts.