/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.KTDfOT$dqoP/rev.539
*
* authors:
* Pedro Soares
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
//Baseado no Sketch de João Pinto
/* @pjs preload="/static/uploaded_resources/p.10081/tumblr_static_the-brightest-of-stars.jpg"; */
/* @pjs preload="/static/uploaded_resources/p.10081/galaxia.png"; */
PImage estrelas = loadImage("/static/uploaded_resources/p.10081/tumblr_static_the-brightest-of-stars.jpg");
PImage galaxia = loadImage("/static/uploaded_resources/p.10081/galaxia.png");
float r = 0;
float a = 0;
void setup() {
size(900, 700);
}
void draw () {
imageMode (CORNER);
image (estrelas);
imageMode (CENTER);
translate (mouseX,mouseY)
rotate (r);
image (galaxia);
r = r + 0.02;
a = a + 3;
}