Skip to content

Instantly share code, notes, and snippets.

@albertochiwas
Last active August 29, 2015 14:12
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/eb2ca99c3782fda43826 to your computer and use it in GitHub Desktop.
Save albertochiwas/eb2ca99c3782fda43826 to your computer and use it in GitHub Desktop.
Multiple waving puppets
var av1 = new Avatar("panther");
var av2 = new Avatar("squirrel");
av1.scale(0.6);
av2.scale(0.4);
av1.setWave(199);
av2.setWave(199);
noCursor();
var draw = function()
{
fill(127, 165, 176, 99);
rect(0,0,400,400);
av1.wave();
av1.draw(mouseX-90,190);
av2.wave();
av2.draw(mouseX+90,230);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment