graphics

RgbGlitchText

RGB channel-split text — red and cyan copies ride just off the white center, with periodic glitch bursts that kick the split wider. The burst jitter is deterministic (seeded PRNG keyed by frame). High-energy, with a restrained baseline so bursts read as punctuation.

$ npx ondajs add rgb-glitch-text

RgbGlitchText

RGB channel-split text — a red and a cyan copy ride just off the white center (composited with mix-blend-mode: screen), with periodic glitch bursts that kick the split wider and add vertical jitter. The burst jitter is a pure function of a seeded PRNG (seededRandom) keyed by the frame bucket, so it renders identically every time (§1). High-energy by design — the baseline split stays restrained so the bursts read as punctuation, not noise.

Props

PropTypeDefaultNotes
textstring"GLITCH"Text to glitch.
delaynumber0Frames before the effect.
baseSplitnumber2Always-on channel split (px).
intensitynumber10Peak extra split during a burst.
glitchPeriodnumber48Frames between bursts.
glitchDurationnumber8Frames a burst lasts.
seednumber7Deterministic jitter seed.
color / redColor / cyanColorstringtext / red / cyanCenter + channel colors.
fontSize / sizenumber / role120Explicit px or canvas-aware role.
fontFamily, fontWeight, letterSpacing, aligndisplay defaultsTypography vocabulary.
placementregion or {x,y,anchor}Canvas placement.

Composited with screen blend — designed for the dark Onda canvas.

Usage

TSX
import { RgbGlitchText } from './components/onda/rgb-glitch-text/RgbGlitchText';

export const GlitchScene = () => (
  <RgbGlitchText text="SIGNAL" placement="center" />
);