# Recipes and accessibility

Start with 900 particles on a phone-size area. Increase only after profiling your actual page and device. Less depth/spread often makes interface transitions more readable than large bursts.

```js
const gentle = {count:900, seed:52, spread:0.2, depth:0.15, bend:0.25, size:2};
const mark = {count:1200, seed:7, preserveColor:true, spread:0.3, bend:0.4};
```

| Field | Accepted values | Purpose |
| --- | --- | --- |
| `version` | Optional `0.2.0` | Pin to this runtime; omit to use its default. |
| `count` | Integer 128–5000 | Particle budget. Start low. |
| `seed` | Integer 0–4294967295 | Stable sampling and matching. |
| `spread`, `depth`, `bend` | Finite 0–1 | Dispersion, projection depth and trajectory bend. |
| `size` | Finite 0.5–6 | Drawn pixel size. |
| `color`, `accent` | Six-digit `#RRGGBB` | Runtime tint colours. |
| `preserveColor` | Boolean | Retain image-source colour. |

Unknown fields, unsupported recipe versions and non-finite values reject. A recipe is data, never executable code. Loading it does not load an image: supply image pixels separately. An exported image recipe may indicate that its source file is still required.

## Accessible integration

- Keep every meaningful message, link and control in ordinary HTML. Mark a decorative canvas `aria-hidden="true"`. If the canvas conveys additional information, describe that information in real text as well.
- Start finite animation from an intentional action when possible. Do not flash, shake or loop a required reading surface.
- The OS reduced-motion preference wins. You can additionally call `setMotionAllowed(false)` for an application preference. Leave navigation and content available in either mode.
- Progress controls need visible labels and native keyboard support. Do not announce every animation frame to assistive technology.
- Preserve readable contrast; an attractive particle colour is not a substitute for text contrast.
- With JavaScript disabled or canvas unavailable, the page must still explain its purpose and expose its real actions.

Text sampling uses system fonts, so exact text pixels differ between operating systems. Deterministic geometry assumes identical sampled inputs, recipe and viewport. There is no guarantee that a chosen recipe produces identical screenshots on every device.
