Last active
August 27, 2017 04:07
-
-
Save albertochiwas/7364b160553b662a61e44ae47ec11121 to your computer and use it in GitHub Desktop.
Uso de comandos del Avatar API
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(2); | |
av.scale(0.5); | |
frameRate(35); | |
av.setLimit(1,-5,90); // rango de desplazamiento (angulo limite) | |
av.setNext(1,5); // velocidad | |
var draw = function() { | |
background(155, 125, 196); | |
if (mouseIsPressed) { | |
av.next(1,5); // av.rotare(1,5); | |
} | |
av.draw(mouseX,mouseY); | |
//println(av.getLimit(1)); | |
}; |
reneariash
commented
Aug 27, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment