@@ -237,6 +237,31 @@ full brightness would be blinding in person; a color that's already
237237it. Start around 5.0 for a similarly low "should read as white" value
238238and adjust live with ` [ ` /` ] ` for anything not listed.
239239
240+ ## Screenshots
241+
242+ For CI, PR previews, or anywhere else a terminal isn't available:
243+
244+ ``` sh
245+ uv run matrixbox screenshot clock -o clock.png
246+ ```
247+
248+ Boots one app headlessly (no terminal, no button listener), waits for it
249+ to draw, writes the result to a PNG, and exits — no second terminal or
250+ ` --connect ` needed. ` --settings <name> ` seeds it with a settings file
251+ before boot, resolved inside the app's own directory (e.g. `--settings
252+ ci.json` for ` apps/clock/ci.json`); omit it to boot with plain defaults.
253+ Always starts from a clean, reset state, regardless of whatever an
254+ earlier ` uv run matrixbox app ` run against the same app may have saved.
255+
256+ By default it captures as soon as one frame is drawn, waiting up to 5
257+ seconds; ` --after-frames <n> ` and ` --timeout <seconds> ` adjust both,
258+ whichever is reached first. An app that never draws in time, or raises
259+ while starting up, exits non-zero with the error printed, so a CI job
260+ fails loudly instead of shipping a blank or stale image. ` --scale <n> `
261+ sets the output PNG's pixel scale factor (default 8, so a 128x32 panel
262+ becomes a 1024x256 image). ` --size ` / ` --width ` / ` --height ` pick the
263+ panel size, same as ` matrixbox app ` (see "Panel sizes" above).
264+
240265## Useful flags
241266
242267` uv run matrixbox app ` : ` --size ` or ` --width ` / ` --height ` for panel
@@ -248,6 +273,8 @@ and start fresh, `--refresh-fps` / `--gamma` (see above).
248273` --device ` or ` --width ` / ` --height ` for the demo/placeholder size (see
249274"Panel sizes" above), ` --fps ` (demo mode only).
250275
276+ ` uv run matrixbox screenshot ` : see "Screenshots" above.
277+
251278## Limitations
252279
253280- ` Group(scale=...) ` is accepted but not honored: nothing renders
0 commit comments