Dot lattice parameter showcase
The clip is one picture: a big lattice of 841 dots is the hero, a narrow panel with six sliders sits beside it (on the left in 16:9, under it in 9:16) and a small title says what it is. Frame 0 already shows all of it, the six sliders at rest and the plain grid. Then the sliders are touched one after the other, the first one at 0.20 s. For each one the panel goes first: a highlight under the row's words glides to the row, the slider's thumb slides (its number counts up or down with it and its track turns from grey to the accent), and the lattice follows the thumb a moment behind it, as much of the setting as the slider has been moved, a ripple through the dots, so every change has a visible cause on the panel and none waits for the slider to stop and then jumps. Each setting is a field laid over the whole lattice, and the settings pile up: the dots run from small at one corner to large at the other like a halftone, the whole lattice opens up, the rows turn into waves that slide against each other, everything outside a circle is cut away, the dots draw out into strokes that swirl round a centre, and they take the accent tones of the palette, strongest at that centre. The result is one picture with a centre, a flow and depth, still readable when it is shrunk. After the sixth slider the panel and the title leave, the lattice glides to its finished place (in the middle sideways and above the middle of the height, to leave room for the closing line under it) and grows, one wave runs through it, and the closing line comes up under it with an accent bar drawn under its first words. If you give a brand, your own product's name is on the picture from the first frame to the last. The picture is then still for 1.35 s. It is one picture: no title card, no end card, no photo, nothing generated. Everything is drawn in code, in the three series palettes.
Use this skill when
- You need a short clip that says "a look is a handful of settings": a design system, a visual style, a generator or a
library whose result is shaped by a few named parameters, shown as sliders that visibly drive one figure.
- You want one held picture with a clear cause and effect, in 16:9 or 9:16, with your own words.
- The words are short: an opening line of two halves, a closing line of two halves, a panel heading and six names.
Do not use
- For a clip that needs a real product screen, a real person, a photo, footage or sound: everything in this clip is drawn for
it and the clip has no audio track.
- For more or fewer than six sliders, or for a different figure: the panel, the lattice and the six settings are fixed
(what each row does and the order are in the table under Inputs); only the words, the palette, the aspect and the timing change (change the layout or the figure in effect/index.mjs, see Motion and layout).
- For a clip that needs a logo or any picture of a brand:
brand is one line of text, nothing more. Your own product's name
goes there and is yours to use. The name of another company, product or model may appear in the words only if you have the right to use it. The bundled default clip names no real company, product or model.
Inputs (clip.json)
aspect (16:9 or 9:16), palette (paper, clay or night), copy and an optional timing. Every copy field has a default, so a clip can set only some of them; the examples write them all out so you can see every field. The one exception is brand: it has no default and the examples leave it out, so a clip without it names nobody.
| Field | What it says | Where it shows | Fit | |---|---|---|---| | title | the first half of the opening line, for example Six sliders; an accent bar lies under it | one row above the panel (left, 16:9) or above the lattice (centred, 9:16), there from frame 0 | one row with titleRest; shrinks to 40 units, then warns | | titleRest | the rest of the opening line, for example shape a plain grid. | next to title | same | | closing | the first half of the closing line, for example Six numbers; an accent bar is drawn under it | under the finished lattice, from 7.30 s | one row with closingRest (16:9) or two lines (9:16); shrinks to 52 units, then warns | | closingRest | the rest of the closing line, for example hold the whole look. | next to or under closing | same | | panel | the panel's heading | the top of the panel | shrinks to 28 units, then warns | | knobs | exactly six names, in the order the sliders are touched; a name can be written as { "name": "Mask", "from": 0, "to": 42 } to set the numbers its slider shows (see The numbers a slider shows) | the panel's six rows | each shrinks to 28 units, then warns | | brand | your own product's name (optional, text only, no logo) | one line of 44 units in the headline's typeface, on the picture from frame 0 to the last frame and never moving: above the opening line at the top left in 16:9 (room 500 units), above it at the top centre in 9:16 (room 888 units; there the opening line starts 45 units lower and the lattice is a little smaller to make room) | never smaller than 44 units: a name that does not fit its room at 44 warns, so shorten it |
What each slider does is fixed by its place, whatever you call it. The panel's numbers are only what the panel says:
| # | Default name | What the lattice does | Default numbers | |---|---|---|---| | 1 | Size | the dots take a size by their place, large at the top left and small at the bottom right, like a halftone (a size ramp) | 18 to 76 | | 2 | Gap | the whole lattice opens up, the pitch growing by about 30 % (the spacing) | 30 to 64 | | 3 | Stagger | the rows turn into waves that slide against each other, and every other row slides half a step sideways (a row offset) | 0 to 100 | | 4 | Density | everything outside a circle is cut away, about 58 % of the dots are kept (a cut-out) | 100 to 58 | | 5 | Tilt | the dots draw out into strokes that swirl round a centre (the strokes turn) | 0 to 62 | | 6 | Tint | the strokes take the accent tones of the palette, strongest at that centre (the depth of the tone) | 0 to 88 |
Pick the name that matches the effect of its place: Dot size, Spacing, Offset, Density, Slant and Tone are fine, because the viewer reads the name and then the change. A name that says something else makes the picture contradict itself: the fourth slider cuts dots away, so it is Density or Mask, not Opacity or Count.
The numbers a slider shows
Each slider counts from one number to another on the panel and its thumb moves along its track (0 to 100) to match. The defaults are in the table. They fit the default names: the fourth slider's number falls from 100 to 58 because it is the share of dots kept, so if you call it Mask (which grows as more is cut away) the default number reads the wrong way. Show your own by writing the slider as an object instead of a name:
"knobs": ["Dot size", "Spacing", "Offset", { "name": "Mask", "from": 0, "to": 42 }, "Slant", "Tone"]
from is the number at rest and to the number after the slider has moved; leave one out and its default stays. Both are whole numbers from 0 to 100 (the track's own scale) and may fall ("from": 100, "to": 30). They change the thumb and the number on the panel and nothing else: what the lattice does, and how much, is the same. A from or to that is not a whole number from 0 to 100, or a field other than name, from and to, stops the run with the field named (copy.knobs[3].to); a slider whose from and to are the same would not move and is a warning, which --production refuses.
Text is sized from the bundled fonts: a line that does not fit even at its smallest size is a warning that names the field, and --production refuses it. The smallest type in the clip is 28 units (18.7 px in a 720p preview): the panel heading is 30, the numbers 36 (32 in 9:16), the row names 40 (34 in 9:16), the opening line 60 (62), the closing line 88 and the brand 44 (never smaller).
Keep the words in step
The picture says one thing in several places, so its words have to agree. If you rename the rows and leave the heading and the opening line at the defaults, the clip is valid but the panel still says "Dot controls" and the line still talks about a plain grid: the run prints an advice that names the fields (it does not stop --production; act on it before you deliver). Change these together:
| You change | Then also set | Because | |---|---|---| | knobs | panel, title, titleRest, and from / to of a slider whose name reads the other way than its default numbers | the heading and the opening line are about the six rows, and a number has to agree with its name | | title, titleRest | closing, closingRest | the closing line answers the opening one (Six sliders / Six numbers) | | closing, closingRest | title, titleRest | the same, the other way round | | brand | nothing | the name is free |
Aspects and palettes
- 16:9 (1920 x 1080): the title and the panel form a column on the left (x 194 to 834; the title from y 192, the panel y 300 to
900), the lattice is on the right (centre x 1346, 650 units tall at rest, 840 once the gap setting has opened it: 60 % to 78 % of the height); text stays out of the outer 96 units. At the end the lattice sits in the middle sideways and above the middle of the height (centre 960, 466, grown by 6 %), the closing line under it (from y 860); a brand is at x 194, y 100, above the opening line. 9:16 (1080 x 1920): the title first (from y 218), then the lattice (y 340 to 1107 at its widest, the stagger's waves included: never closer than 40 units to the title's bar or to the panel), then the panel (y 1152 to 1580), so the figure is above the panel; at the end the lattice stops above the middle of the frame (centre 540, 752, which is 39 % of the height; grown by 19 %) and the closing line is in two lines under it. With a brand it is centred at y 200, the opening line starts at y 263 and the lattice is a little smaller and lower (y 384 to 1109 at its widest, grown by 26 % at the end), so that the finished lattice is the same size. Nothing to be read lies within 200 px of the top or 340 px of the bottom, which is where the platforms put their own interface. Everything is centred sideways. Only the top and the bottom are kept clear: the column of buttons that the platforms put along the right-hand edge can cover the right end of the panel (the numbers end 140 px from the edge, the panel 96), and the clip leaves no room for it. The first frame is the whole picture in both.
paper (a cream ground and a white panel, the default), clay (a terracotta ground and a dark panel) and night (a near-black
ground and a dark panel). Only night is a dark palette: clay's ground is terracotta, not dark. The lattice is drawn straight on the ground (no card): ink-coloured dots at rest, and the tint setting paints them in the palette's own accent family, three tones: coral for paper, amber for clay, lime for night. The tone that stands out most from the ground sits at the centre of the lattice, the other at its rim.
Timing
timing is optional; every value is in seconds and a value outside its range stops the run with the field name.
| Field | Default | Range | Moves | |---|---|---|---| | first | 0.20 | 0.15 to 0.35 | the first slider's highlight, and everything after it (its thumb moves 0.15 s later, at 0.35 s) | | beat | 1.00 | 0.85 to 1 | the time from one slider to the next (each beat is settled 0.70 s after it began, so beat minus 0.70 is the settled gap between two beats) | | pause | 0 | 0 to 0.1 | the wait between the last beat settling and the start of the finale |
The clip is 9.6 s and must end with at least 1.2 s of stillness: a combination that pushes the last move (the marker bar) past 8.4 s (that is, first + 6 x beat + pause above 6.35 s, for example first: 0.35 with pause: 0.1) stops the run with the field names. The default ends its last move at 8.25 s and is still for 1.35 s.
First run: what gets downloaded
npm ci in this folder installs HyperFrames 0.8.164 and puppeteer-core (about 120 MB).node scripts/doctor.mjs. On a machine that has never rendered with HyperFrames it fails at render page 1920×1080
("ok": false, exit code 1). That is expected: a desktop Chrome gives HyperFrames a smaller page than the frame (1920 x 993 for a 1080 p frame in Chrome 156), and every rendered frame would end in a black band. Fix it once with the browser HyperFrames brings itself, Chrome Headless Shell: a download of about 93 MB (193 MB unpacked, into ~/.cache/hyperframes/chrome). On a slow connection it can take a long time and prints nothing while it runs, so start it in the background with a long timeout and wait for it to finish: the silence is not a hang. Make the project folder first (step 2 of the Workflow) and send the output to a file in the project folder, not in this skill folder:
HYPERFRAMES_NO_TELEMETRY=1 DO_NOT_TRACK=1 node_modules/.bin/hyperframes browser ensure > <projectFolder>/browser-ensure.log 2>&1
The redirect matters: when the output is not a terminal (an agent's shell, a CI log) the progress spinner writes a flood of characters instead of a few lines, and the command has no quiet switch. Do not print the file. The exit code (0 means done) and the next node scripts/doctor.mjs, which must now say "ok": true and exit 0, are what to check.
- Nothing else is downloaded, and telemetry and update checks are switched off in every command the scripts run.
There is no photo, no background removal and no footage in this clip, so nothing else needs installing.
Workflow
- In this folder run
npm ci, then node scripts/doctor.mjs. It prints JSON and exits 0 when "ok": true, 1 when it is
not. Fix any required item it marks as failing ("required": true and "ok": false) before going on (on a new machine the browser is the first: see First run). One item is always listed and is not required: background removal (only for footage with a background) says "ok": false until its runtime and model have been downloaded, and you can ignore it, because this clip has no footage to cut out.
- Make a project folder and copy
examples/default/clip.json (or examples/vertical/clip.json) into it. Edit the
copy, the palette and the aspect, keeping the words in step.
- Render:
node scripts/run.mjs <projectFolder> --production. The film is <projectFolder>/clip-16x9.mp4 (or
clip-9x16.mp4), 30 fps H.264. --aspect and --palette override the file; --production stops on any warning (copy that does not fit), which is what you want for anything you deliver.
- Look at the eight held moments (the first picture; after each of the six sliders; the closing line).
<projectFolder>/qa/holds.jpg is a small overview: use it for the sequence and the layout. The row names and numbers are small in the overview, so also look at single frames of the film at full size (for example ffmpeg -ss 8.9 -i <film> -frames:v 1 final.png). Check every word on the panel and in both lines against clip.json and that each row's name fits what the lattice does at that place.
- Check the file:
node scripts/validate-video.mjs <projectFolder>/clip-16x9.mp4 (use clip-9x16.mp4 for 9:16; exit 0
means it passes: H.264, yuv420p, 30 fps, a supported canvas, and none of six evenly spaced sampled frames is blank).
- Write the hand-off note from the template under Output contract and save it as
<projectFolder>/handoff.txt.
Output contract
clip-<aspect>.mp4: H.264, yuv420p, 30 fps, no audio track, 9.6 s (288 frames). 16:9 is 1920 x 1080 and 9:16 is
1080 x 1920.
- One picture. Frame 0 shows the whole picture: the opening line with a short accent bar under its first half, the panel with its
heading and six sliders at rest (grey, numbers at 18, 30, 0, 100, 0 and 0 unless you set your own), the plain lattice of 841 small dots, and your brand if you give one. Nothing enters from nothing; there is no title card, summary card or end card.
- The beat, with the default timing: a slider is touched at 0.20, 1.20, 2.20, 3.20, 4.20 and 5.20 s (
a): the highlight glides to
the row (0.30 s; at the first slider it fades in) and the row's name and number darken; from a + 0.15 s to a + 0.65 s the thumb slides (0.50 s), its number counts and its track turns to the accent (the first thumb moves at 0.35 s); from a + 0.20 s to a + 0.70 s the lattice follows the thumb (0.50 s on the same curve, 0.05 s behind it), a ripple through the dots, so at every moment the picture shows about as much of the setting as the slider has been moved. The settings pile up: 1 the dots take a size by their place (large at the top left, small at the bottom right), 2 the lattice opens up (the pitch from 23.2 to 30 units, about 30 %), 3 the rows turn into waves, slide against each other and every other row slides half a step sideways (a ripple from left to right), 4 everything outside a circle of 0.86 of the half-width is cut away (an iris closing from the corners, fast at first and slowly at the end, so the share of dots left follows the panel's number; about 58 % of the dots are kept), 5 the dots draw out into strokes that follow a swirl round a centre a little up and left of the middle (a ripple from that centre), 6 the strokes take three accent tones (deepest or lightest at the centre, by what stands out from the ground). Each beat is settled 0.70 s after it began and the next begins 0.30 s later. The finale starts at 6.20 s: the panel and the opening line fade and leave (0.45 s), the lattice glides to its finished place (centre 960, 466 in 16:9; centre 540, 752 in 9:16, above the middle of the frame) and grows by 6 % in 16:9 (19 % in 9:16, 26 % with a brand) (0.80 s from 6.35 s), one wave runs through it from the centre to the rim (0.90 s from 7.05 s), the closing line comes up from 7.30 s (0.55 s) and its accent bar is drawn under the first half from 7.80 s (0.45 s). A brand does not take part in any of it: it is on the picture from the first frame and stays put to the last. Nothing moves after 8.25 s: 1.35 s of stillness to the last frame.
- Eight held moments in this order: (1) the first picture, at 0.14 s; (2) to (7) after each slider, at 1.05, 2.05, 3.05, 4.05,
5.05 and 6.05 s; (8) the closing line and the finished lattice, at 9.12 s.
- The words are the ones in
clip.json; no other text and no logo appears (the numbers on the panel are the only other
characters). The only name on screen is the one you put in brand: without it the clip names nobody. Text stays out of the outer 96 units of the 16:9 frame; in 9:16 nothing to be read lies within 200 px of the top or 340 px of the bottom; the validator's six sampled frames are not blank.
- Also:
build/ (the editable HyperFrames project), qa/report.json and qa/holds.jpg, and the hand-off note handoff.txt.
Hand-off note
Save it as <projectFolder>/handoff.txt, next to clip.json, and give the user its text with the film's path. Six lines:
Film: <path>/clip-<aspect>.mp4 (H.264, <width> x <height>, 30 fps, 9.6 s, no audio) Words: opening "<title> <titleRest>"; closing "<closing> <closingRest>"; panel "<panel>"; sliders "<1>" / "<2>" / "<3>" / "<4>" / "<5>" / "<6>"; brand "<brand | none>" Look: <aspect>, palette <palette>, timing <defaults | the values you changed> Pictures: none (everything is drawn in code) Checks: run.mjs --production <passed | the warnings>; validate-video.mjs <its output line>; words agree <yes | what you changed> Open: <what the user still has to decide or supply, or "none">
Motion and layout
references/motion-spec.md: every time, frame and curve; the sections and held moments; what to keep when you change
the effect.
references/layouts.md: canvases, boxes and type of the panel, the plate and the line in both aspects, fit rules, palettes.
Content changes in clip.json; motion changes in effect/index.mjs.
Failure rules
- If the run or the validator fails, do not deliver the film. Fix the cause and render again.
- Copy that does not fit is a warning, and
--production refuses it: shorten the line named in the message. - The advice that some words still say the defaults (see "Keep the words in step") does not stop
--production; act on it
before you deliver. A run that has any warning or advice ends with QA passed with N warning(s) and lists them again as its last lines: that is not a clean pass.
- A timing out of range or a closing line too close to the end stops the run with the field name.
- When the run reports a browser that crops the page, follow its advice (
doctor.mjs) before rendering. - Use words you may use: your own product's name (in
brand) is yours; another company's, product's or model's name only if
you have the right to it. Never someone else's logo, screen, footage or identity.
Reference demo
The marketplace preview is rendered from examples/default: the opening line Six sliders shape a plain grid., the panel Dot controls with its six sliders Size, Gap, Stagger, Density, Tilt and Tint, the lattice of 841 dots, and the closing line Six numbers hold the whole look., in the paper palette. The words are made up for this skill and name no real company, product or model; brand is not set.