Repository navigation
Set Rotate
Mikkel102454 edited this page Oct 6, 2026
·
1 revision
Set rotation for subsequent drawing.
All listed arguments are required.
| Name | Type | Meaning |
|---|---|---|
rotate |
integer | 0, 90, 180, or 270 degrees |
{
"cmd": "set_rotate",
"args": {
"rotate": 180
}
}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.