All functions mapped from TrussC
Example
float angle = 0;
void draw() {
angle += getDeltaTime();
clear(0.1);
pushMatrix();
translate(getWindowWidth() / 2, getWindowHeight() / 2);
rotate(angle);
setColor(1, 0.5, 0.2);
drawRect(-50, -50, 100, 100);
popMatrix();
}
Embed
Add TrussSketch to any website with just two lines of code.
See embed guide →