Repository navigation
Set Pixel
Mikkel102454 edited this page Oct 6, 2026
·
1 revision
Set one pixel.
All listed arguments are required.
| Name | Type | Meaning |
|---|---|---|
x, y |
integer | Position inside the display |
color |
string | Opaque palette color |
{
"cmd": "set_pixel",
"args": {
"x": 10,
"y": 10,
"color": "black"
}
}The current handler forwards (x + 1, y + 1) to the canvas. This example therefore paints (11, 11) before transforms. At the last row or column the shifted pixel is clipped. For a point at the given coordinates, use draw_point with 1x1 and around.
See Command Reference, Color Palette, and Renderer Notes.