# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Mix table The documented mix of A `#c43c2c` and B `#e4d39a`, at equal wetness, is `#d48b5c` (a simple subtractive-ish blend defined exactly in `fixtures/paint-mix.json`). Tests use the file. ## Screenshot tolerance 12 levels, 96% of pixels for wet paint; 8 levels, 98% for the dried frame. Checksums on a CPU reference are exact. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | A slow, oily stroke | Shown in a margin. | | `thickness` | Thickness | 0.7 | From 0.2 to 1, how viscous the paint is. | | `wet` | Keep the paint wet | on | If off, a stroke dries after 2 seconds and no longer smudges. | | `mixing` | Mix on the canvas | on | A second colour smudged into the first produces a documented mix. | | `paper` | Paper | cream | The ground colour. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `fixtures/paint-mix.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/paint-stroke.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/stroke.png` | A slow, oily scripted stroke at thickness 0.7. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. A scripted stroke yields checksums and a golden frame. A wet smudge moves paint; a dried stroke does not. Colour mixing is tested at a documented pixel against a mix table, and is skipped when the option is off. A CPU reference is preferred in CI. No network.