# around

function in `@dioramajs/particles/sparkles`

```ts
import { around } from '@dioramajs/particles/sparkles'
```

A spot around a box `width` x `height` centred at 0,0 (y up): a point of its outline picked
evenly along it, pushed out along the side's normal by up to `spread`, or a little inside.

```ts
function around(
  random: () => number,
  width: number,
  height: number,
  spread: number,
  size: number,
): Point
```

| Parameter | Type | Description |
| --- | --- | --- |
| `random` | `() => number` |  |
| `width` | `number` |  |
| `height` | `number` |  |
| `spread` | `number` |  |
| `size` | `number` |  |

Defined in [packages/particles/src/sparkles.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/particles/src/sparkles.ts#L72).
