» codelab : http://codelab.fr/accueil » Forum : Processing : http://codelab.fr/processing » rotation : http://codelab.fr/3345 Ceci est la version imprimable d'un sujet du forum, pour retourner à la version complète : rotation |
nitefish — 2012-05-01 21:43:06 |
float r=0; PShape a; void setup(){ size(300,300); background(255); } void draw(){ background(255); smooth(); a = loadShape("bot1.svg") ; update(mouseY); shape(a,width/2,height/2,a.width/4,a.height/4); } void update(int r){ a.rotate(r); } Je n'arrive pas à faire tourner le motif sur lui même,comme si c'était un potentiomètre. |
nitefish — 2012-05-02 17:31:09 |
bon... |
emoc — 2012-05-02 17:42:27 |
cool ;) |
EricRG — 2012-05-04 11:24:55 |
HIHI, |