Repository navigation
Draw Circle
Mikkel102454 edited this page Oct 6, 2026
·
2 revisions
Draw a circle.
All listed arguments are required.
| Name | Type | Meaning |
|---|---|---|
x, y |
integer | Center |
radius |
integer | Nonnegative radius in pixels |
color |
string | Opaque palette color |
width |
string | 1x1, 2x2, 3x3, or 4x4 |
fill |
string | empty for outline; full for filled |
{
"cmd": "draw_circle",
"args": {
"x": 45,
"y": 95,
"radius": 20,
"color": "red",
"width": "1x1",
"fill": "empty"
}
}The center plus and minus the radius must be within the display on both axes. A circle crossing the display boundary is rejected. Width controls the outline mode; the filled-circle implementation uses single-pixel points regardless of the requested width.
See Command Reference, Color Palette, and Renderer Notes.