# layout

function in `@dioramajs/media/polaroids`

```ts
import { layout } from '@dioramajs/media/polaroids'
```

Where the prints lie on a `width` x `height` table, the same for a seed on every load. `sizes`
are the prints, `at` the centres of their images in the page (for `grid`). `rotate` in degrees,
`spread` 0..1 how far they stray from their places.

```ts
function layout(
  style: PolaroidsStyle,
  sizes: readonly ({ … })[],
  at: readonly ({ … })[],
  width: number,
  height: number,
  seed: number,
  rotate: number,
  spread: number,
): Spot[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `style` | `PolaroidsStyle` |  |
| `sizes` | `readonly ({ … })[]` |  |
| `at` | `readonly ({ … })[]` |  |
| `width` | `number` |  |
| `height` | `number` |  |
| `seed` | `number` |  |
| `rotate` | `number` |  |
| `spread` | `number` |  |

Defined in [packages/media/src/polaroids.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/media/src/polaroids.ts#L48).
