- Docs
- Components
- Backgrounds
- Dots & Pixels
- Circuit Flash
A dot-matrix field with tracking boxes, rays and live coordinates
| Name | Type | Default | Description |
|---|---|---|---|
colors | [string, string] | ["#96E4CB", "#88E7EA"] | Signal colour for the cells and flashes, and accent colour for focused points. Dim cells, highlights and the HUD ink are derived from them. |
backgroundColor | string | "#0A0A0A" | Page colour. Light backgrounds switch to ink mode, where cells, lines and labels are drawn dark. |
shape | "rect" | "square" | "dot" | "diamond" | "rect" | Shape of each resting cell. Flashing cells always light up as narrow bars. |
cellSize | number | 9 | Horizontal spacing of the cell grid in CSS pixels. Tracking boxes and labels scale with it. |
cellAspect | number | 1.33 | Row spacing relative to the column spacing. Higher values give taller cells. |
coverage | number | 0.66 | Share of the frame covered by the field, from 0 to 1. Lower values leave more empty space between the regions. |
scale | number | 1 | Size of the field's regions. Higher values give broader shapes. |
drift | number | 1 | How fast the regions slowly reshape. |
brightness | number | 1 | Brightness of the resting cells. |
twinkle | number | 1 | Rate of the short flashes that flicker across the cells. |
signals | number | 1 | Rate of the longer signals that run along the rows like current through a circuit. |
traceLength | number | 7 | Average length of a signal run, in cells. |
points | number | 24 | Number of tracked points at a 1280×720 frame. Larger and smaller frames scale it with their area. |
labels | number | 6 | How many points show live coordinates. 0 also hides the target, sector and status tags. |
rays | number | 1 | Opacity of the rays that join every point to the target. 0 hides them. |
target | [number, number] | [0.62, 0.44] | Resting position of the target as fractions of the frame. When idle it glides around this spot. |
focus | number | 1 | Rate at which points are singled out: the box doubles in size and the cells inside light up in the accent colour. |
regions | boolean | true | Draws labelled sector boxes around the two clusters of points. |
status | boolean | true | Shows the live tracking count in the top-left corner. |
grid | number | 1 | Opacity of the faint background grid. |
glow | number | 1 | Soft halo around flashing cells. |
grain | number | 0 | Film grain over the lit cells, from 0 to 1. |
speed | number | 1 | Overall animation speed. |
seed | number | 0 | Changes the shape of the field, so several instances on a page differ. |
interactive | boolean | true | The target follows the pointer and locks when it rests. A click sends signals out from that cell and focuses the nearest point. |
intro | boolean | true | The field boots in a scan from the target and the points lock on one by one, the first time it comes into view. |
paused | boolean | false | Freezes the animation. |
ref | { replay, flash } | — | Replays the intro, or sends a burst of signals from a point (0 to 1 on each axis). |
children | ReactNode | — | Content layered above the effect. |
className | string | — | Classes for the root element. |
style | CSSProperties | — | Inline styles for the root element. |
colors[string, string]Signal colour for the cells and flashes, and accent colour for focused points. Dim cells, highlights and the HUD ink are derived from them.
["#96E4CB", "#88E7EA"]backgroundColorstringPage colour. Light backgrounds switch to ink mode, where cells, lines and labels are drawn dark.
"#0A0A0A"shape"rect" | "square" | "dot" | "diamond"Shape of each resting cell. Flashing cells always light up as narrow bars.
"rect"cellSizenumberHorizontal spacing of the cell grid in CSS pixels. Tracking boxes and labels scale with it.
9cellAspectnumberRow spacing relative to the column spacing. Higher values give taller cells.
1.33coveragenumberShare of the frame covered by the field, from 0 to 1. Lower values leave more empty space between the regions.
0.66scalenumberSize of the field's regions. Higher values give broader shapes.
1driftnumberHow fast the regions slowly reshape.
1brightnessnumberBrightness of the resting cells.
1twinklenumberRate of the short flashes that flicker across the cells.
1signalsnumberRate of the longer signals that run along the rows like current through a circuit.
1traceLengthnumberAverage length of a signal run, in cells.
7pointsnumberNumber of tracked points at a 1280×720 frame. Larger and smaller frames scale it with their area.
24labelsnumberHow many points show live coordinates. 0 also hides the target, sector and status tags.
6raysnumberOpacity of the rays that join every point to the target. 0 hides them.
1target[number, number]Resting position of the target as fractions of the frame. When idle it glides around this spot.
[0.62, 0.44]focusnumberRate at which points are singled out: the box doubles in size and the cells inside light up in the accent colour.
1regionsbooleanDraws labelled sector boxes around the two clusters of points.
truestatusbooleanShows the live tracking count in the top-left corner.
truegridnumberOpacity of the faint background grid.
1glownumberSoft halo around flashing cells.
1grainnumberFilm grain over the lit cells, from 0 to 1.
0speednumberOverall animation speed.
1seednumberChanges the shape of the field, so several instances on a page differ.
0interactivebooleanThe target follows the pointer and locks when it rests. A click sends signals out from that cell and focuses the nearest point.
trueintrobooleanThe field boots in a scan from the target and the points lock on one by one, the first time it comes into view.
truepausedbooleanFreezes the animation.
falseref{ replay, flash }Replays the intro, or sends a burst of signals from a point (0 to 1 on each axis).
—childrenReactNodeContent layered above the effect.
—classNamestringClasses for the root element.
—styleCSSPropertiesInline styles for the root element.
—