Repository navigation
API‐Reference
Gustavo Adrien Polli edited this page Jul 13, 2026
·
1 revision
-
cls(color): Flushes active drawing pixel matrices with the specified color index, accounting for scissor offsets. -
pset(x, y, color): Plots a single pixel token into the frame array after evaluating current camera transformations. -
line(x0, y0, x1, y1, color): Computes linear pixel steps utilizing an unrolled CPU Bresenham’s calculation loop. -
circ(x, y, r, color)/circfill(x, y, r, color): Plots hollow or solid circular perimeters executing parallel horizontal sweep lines on the CPU layer. -
rspr(n, dx, dy, angle, sx, sy): Rotated Sprite. Transforms an 8×8 sprite block across full 360-degree vectors using an inverse-sampling algorithm to prevent missing pixel gaps. -
pal(c0, c1): Reroutes target look-up index configurations on-the-fly during screen rendering steps. -
clip(x, y, w, h): Establishes coordinate bounding limits to isolate rendering pipelines to specific regions of the canvas. -
print(str, x, y, color): Converts strings into binary bitmaps using a custom 3x5 bitmask font layer that supports standard readable text.
-
btn(button, [player]): Polls real-time boolean states from virtual controller registers [SPEC.md]. Supports local physical multi-player configurations across 4 local slots (0to3).-
buttonIDs:0(Left),1(Right),2(Up),3(Down),4(Action Button A / Z),5(Action Button B / X).
-
-
sfx(n, channel): Sends a procedural synthesis request (Sine, Square, Triangle, Noise waveforms) down to the decoupled hardware audio stream mixer.