Last active
August 29, 2015 14:12
-
-
Save albertochiwas/eb2ca99c3782fda43826 to your computer and use it in GitHub Desktop.
Multiple waving puppets
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 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