Skip to content

Instantly share code, notes, and snippets.

@albertochiwas
Created August 27, 2015 17:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertochiwas/2720929ecf5ef160da1c to your computer and use it in GitHub Desktop.
Save albertochiwas/2720929ecf5ef160da1c to your computer and use it in GitHub Desktop.
Demo for joint rotate
var av = new Avatar("squirrel");
var draw = function()
{
background(127, 165, 176);
av.rotate(av.BrazoIzq, random(-1,2));
av.rotate(av.CodoIzq, random(-2,3));
av.rotate(av.Rabo, random(-3,3));
av.draw(200,200);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment