Skip to content

Set Rotate

Mikkel102454 edited this page Oct 6, 2026 · 1 revision

set_rotate

Set rotation for subsequent drawing.

Arguments

All listed arguments are required.

Name Type Meaning
rotate integer 0, 90, 180, or 270 degrees

Example

{
  "cmd": "set_rotate",
  "args": {
    "rotate": 180
  }
}

Behavior

Changes subsequent pixel mapping, not pixels already drawn. Invalid angles leave the prior rotation unchanged. The setter does not swap the logical width and height; on this rectangular canvas, 90° and 270° can clip unexpectedly. Use the emulator to check the result. Set 0 to restore normal rotation.

See Command Reference, Color Palette, and Renderer Notes.

Implementation references

Clone this wiki locally