Skip to content

Draw Point

Mikkel102454 edited this page Oct 6, 2026 · 2 revisions

draw_point

Draw a point or block.

Arguments

All listed arguments are required.

Name Type Meaning
x, y integer Position inside the display
color string Opaque palette color
width string 1x1, 2x2, 3x3, or 4x4
style string around or rightup

Example

{
  "cmd": "draw_point",
  "args": {
    "x": 10,
    "y": 80,
    "color": "black",
    "width": "1x1",
    "style": "around"
  }
}

Behavior

The width names select renderer modes. With width number N, around draws a centered square of side 2N - 1 (1, 3, 5, or 7 pixels). rightup draws an N × N block starting at the supplied coordinate and extending right and down in the current renderer, despite its name. The anchor must be inside the display.

See Command Reference, Color Palette, and Renderer Notes.

Implementation references

Clone this wiki locally