/ Published in: Processing

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
float counter; PImage img; void setup() { counter=0.0; size(300,300); img=loadImage("brownplane.png"); } void draw() { background(0); counter++; translate(width/2-img.width/2, height/2-img.height/2); rotate(counter*TWO_PI/360); translate(-img.width/2, -img.height/2); image(img,0,0); }
URL: http://processing.org/discourse/yabb2/YaBB.pl?num=1251909297
Comments
