Repository navigation
Command Reference
Mikkel102454 edited this page Oct 6, 2026
·
4 revisions
These are all 12 commands registered in the current shared renderer. Each command uses {"cmd": "name", "args": {...}} inside a protocol 2.0 document.
| Command | Purpose |
|---|---|
| clear | Fill the entire framebuffer |
| clear_window | Fill a rectangular region |
| set_rotate | Set rotation for subsequent drawing |
| set_mirroring | Set mirroring for subsequent drawing |
| set_pixel | Set one pixel |
| draw_point | Draw a point or block |
| draw_line | Draw a line between two points |
| draw_rectangle | Draw a rectangle |
| draw_circle | Draw a circle |
| draw_pie_slice | Draw a filled circular sector |
| draw_image | Draw Base64-packed indexed pixels |
| draw_text | Draw bounded UTF-8 rich text |
draw_string is a removed v1 command. See Versioning for migration.
Commands execute sequentially. Colors, bounds, required fields, and rendering limits are command-specific; helper-library defaults do not make a wire argument optional.