Dot Matrix Clock
A dot-matrix clock widget: the place, the time with seconds and the date in glowing LED dots on a board of unlit dots. Changing digits light up in a quick sweep, the colon blinks, and any time zone names its own city.
Features
- •A real LED board — Every character is drawn in lit dots from a 5×7 dot font, on a background of dim unlit dots, with a soft glow around the lit ones.
- •Alive every second — Digits that change light up in a quick top-to-bottom sweep, the colon blinks, and the board lights up in a diagonal wave when it appears.
- •Any time zone — Pick a time zone and the place fills in from it (Asia/Tokyo shows TOKYO), with the UTC offset in the corner, or type your own place name.
- •12 or 24 hours — 24-hour time with seconds by default; switch to 12-hour with AM/PM, or hide the seconds.
- •Your colours — Dot colour, unlit dots, background, border, corner radius, round or square dots, and the glow.
- •One file, no dependencies — Drawn on a high-DPI canvas that fills its parent. Pauses offscreen; with reduced motion the digits change without the sweep.
Props API Reference
9 configurable props| Prop | Type | Default | Description |
|---|---|---|---|
| timeZone | string | "Asia/Tokyo" | IANA time zone; empty uses the visitor's own. |
| place | string | "" | The place shown above the time; empty uses the city from the time zone. |
| hour12 / showSeconds / blink | boolean | false / true / true | 12-hour time with AM/PM, seconds, and the blinking colon. |
| dotColor / unlitColor | string | "#FF7A1A" / mixed | Lit dots, and unlit dots (empty mixes the dot colour softly into the background). |
| showUnlit | boolean | true | The board of unlit dots filling the background. |
| background / borderColor | string | "#0E0E10" / "#1E1E22" | Widget background and border. |
| radius | number | 0 | Corner radius in px. |
| dotShape / glow | "round" | "square" / boolean | "round" / true | Dot shape, and the glow around lit dots. |
| className / style | string / CSSProperties | undefined | On the widget; it fills its parent. |