Created
August 27, 2015 17:45
-
-
Save albertochiwas/2720929ecf5ef160da1c to your computer and use it in GitHub Desktop.
Demo for joint rotate
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("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