Log inGet started
World

Match Flow Kit: Countdowns, Rounds and Results

README.md

countdowns

The ten countdown styles as widget-tree renderers: bold, trafficLight, pixel, hologram, cartoon, minimal, fantasy, flipClock, neon and broadcast. MatchFlow, the Countdown component and the style gallery all call it.

  • render(styleId, secondsLeft, { w, h, goText, caption }) returns a node for that moment, animated from the fractional seconds. A negative secondsLeft is the time since GO. It returns nil once GO has finished showing.
  • STYLES lists { id, label, sound }; byId indexes it. frame(secondsLeft) returns (number, progress, isGo).

Every element is sized from w and h (default 420×320), so a style can be drawn as a small tile or full screen.