Created
August 29, 2015 16:37
-
-
Save albertochiwas/0b661efd43481fde70a7 to your computer and use it in GitHub Desktop.
test joint angle limits & show pivots & squirrel2-3 (ver 0.2)
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
var av = new Avatar("squirrel3"); | |
var pause = false; | |
var draw = function() { // test limits & pivots | |
background(240); | |
for ( var i=0; i<av.Joints; i++) { | |
av.rotate(i,random(-3,3)); | |
} | |
av.drawPivots(mouseX,mouseY); | |
}; | |
var mouseClicked = function() { | |
if (pause) { | |
loop(); | |
} else { | |
noLoop(); | |
} | |
pause = !pause; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment