Skip to content

Instantly share code, notes, and snippets.

@limzykenneth
Last active May 7, 2020 22:09
Show Gist options
  • Save limzykenneth/4c1a8d77f0f2d5bfbf519c732bec7ddd to your computer and use it in GitHub Desktop.
Save limzykenneth/4c1a8d77f0f2d5bfbf519c732bec7ddd to your computer and use it in GitHub Desktop.
p5.js Example Using RotationX/Y/Z
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
textSize(30);
text("Rotation X: " + rotationX, 10, 40);
text("Rotation Y: " + rotationY, 10, 80);
text("Rotation Z: " + rotationZ, 10, 120);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment