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

View Source

Bright sparks flash at random perimeter positions. Each spark is a jagged character (+ * # \ / x) painted in a vivid palette color and bold. Position + char are deterministic from the time bucket, so a given now_ms always produces the same crackle pattern.

Char replacement is gated by per-spark intensity so the box outline remains readable when only a few cells are lit at once.

Surface support: terminal only. LiveView/MCP ignore non-stroke types.

Opts

  • :variant -- color palette (defaults to :electric)
  • :strength -- 0.0-1.0 spark peak (default 1.0)
  • :frequency -- approximate sparks per second (default 25)
  • :bucket_ms -- how long each spark pattern persists (default 60)