Last active
May 7, 2020 22:09
-
-
Save limzykenneth/4c1a8d77f0f2d5bfbf519c732bec7ddd to your computer and use it in GitHub Desktop.
p5.js Example Using RotationX/Y/Z
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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