Skip to content

Instantly share code, notes, and snippets.

@albertochiwas
Created August 29, 2015 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertochiwas/0b661efd43481fde70a7 to your computer and use it in GitHub Desktop.
Save albertochiwas/0b661efd43481fde70a7 to your computer and use it in GitHub Desktop.
test joint angle limits & show pivots & squirrel2-3 (ver 0.2)
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