Raxol.Effects.BorderBeam.Effects.Stroke (Raxol v2.6.0)

View Source

A long bright comet sweeps clockwise around the border. The head is always the brightest palette color (bold); the trail fades through the palette and dims via terminal attrs.

This is the default effect; the only one rendered by LiveView CSS via Raxol.LiveView.TerminalBridge.animation_css/1.

Hot path is tight: palette is fetched once as a tuple, the decay table is precomputed for the trail length, and per-cell color lookup is elem/2 (O(1)) -- not Enum.at (O(n)).

Opts

  • :variant -- color palette (any from BorderBeam.Colors.palette/1)
  • :size -- :full | :compact | :line (controls trail length)

  • :duration_ms -- one full orbit (default 2000)
  • :strength -- 0.0-1.0 head intensity (default 0.8)