Skip to content

Set Pixel

Mikkel102454 edited this page Oct 6, 2026 · 1 revision

set_pixel

Set one pixel.

Arguments

All listed arguments are required.

Name Type Meaning
x, y integer Position inside the display
color string Opaque palette color

Example

{
  "cmd": "set_pixel",
  "args": {
    "x": 10,
    "y": 10,
    "color": "black"
  }
}

Behavior

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.

Implementation references

Clone this wiki locally