1A quiet pointer flashlight: dots reveal fixed ASCII glyphs nearby and
2fade back when the pointer leaves. Ported from the live DotTwinkle
3effect without its production stylesheet or hardcoded colors.
4
5## Use
6
7Pass `<GlyphHover />` to Hero's `ambient` slot. The slot is optional;
8the Hero does not enable background decoration on its own.
9
10For another host, place it inside a positioned container. It listens
11to pointer movement on its immediate parent and never intercepts
12clicks. Text, links and media stay above it.
13
14## Controls and API
15
16The specimen has live controls, not static variants:
17
18- `radius`: beam radius in pixels; default 60.
19- `fadeDuration`: exponential decay time in seconds; default 0.55.
20- `opacity`: maximum canvas alpha, from 0 to 1; default 0.45.
21- `glyphSize`: glyph font size in pixels; default 14.
22- `characters`: the character set, ASCII by default.
23- `enabled`: false clears and disables the effect.
24- `preview`: moves a demonstration beam without a pointer. Off by
25 default; useful for inspecting on touch devices.
26
27Pause, automatic preview, palette inversion and Reset are specimen
28controls, not UI added to the homepage. No analytics events are added.
29
30Opacity multiplies the token's own alpha: a muted ink at 45% plus
31canvas alpha at 45% is deliberately quieter than solid text.
32
33## Lattice and lifecycle
34
35Spacing comes from w-grid-size; font and ink from w-font-display and
36w-ink-muted. The origin is the nearest VisualGrid, or the system scope
37when used without one. Glyphs line up with its dots even when the Hero
38starts below the nav.
39
40Each global cell has a stable character. Returning to a spot reveals
41the same glyph, not random flicker.
42
43The canvas is aria-hidden and pointer-transparent. Reduced motion
44disables both hover and automatic preview, including when changed at
45runtime. Touch input does not trigger a hover trail. Work stops when
46the host is offscreen, the tab is hidden or the field has faded to
47idle. Animation is capped at 30fps and DPR at 1.5.
48
49R-01 assigns the mono font. R-02 supplies the quiet ink. R-08 leaves
50the page ground and static dots to VisualGrid. This effect does not
51restore the removed gutter text or edge tabs.