/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://dflab.sketchpad.cc/sp/pad/view/ro.K94BpNZZLxF/rev.240
*
* authors:
* DuarteCR
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// This sketch builds on a prior work, "Pedro Soares - 03 - Across the Universe", created by Pedro Soares
// http://dflab.sketchpad.cc/sp/pad/view/ro.9PlKLT5tx5NwxZ/rev.539
//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"; */
/* @pjs preload="/static/uploaded_resources/p.10083/smile.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");
PImage smile = loadImage("/static/uploaded_resources/p.10083/smile.png");
//PImage galaxia2 = loadImage("/static/uploaded_resources/p.10081/galaxia.png");
float r = 0;
float rr = 0;
float a = 0;
float aa = 0;
void setup() {
size(900, 700);
}
void fundoEstrelas(){
imageMode (CORNER);
image (estrelas);
imageMode (CENTER);
}
void galaxia1 (){
translate (height/2,width/2)
rotate (r);
image (galaxia);
r = r + 0.02;
a = a + 3;
}
void smileFace (){
translate (height/3,width/3)
rotate (rr);
image (smile);
rr = rr + 0.02;
aa = aa + 3;
}
void draw () {
fundoEstrelas();
galaxia1 ();
smileFace ();
}