Created
October 4, 2015 22:06
-
-
Save jessherzog/86316c6ecfca4b8fef79 to your computer and use it in GitHub Desktop.
wild donuts
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
// images are in zip file link in Assignment submission !! | |
float x = 0; | |
float y = 10; | |
float z = 0; | |
PImage a; | |
PImage b; | |
PImage c; | |
void setup() { | |
a = loadImage("sick.jpg"); | |
b = loadImage("hm.png"); | |
c = loadImage("fya.png"); | |
size(500, 500); | |
background(a); | |
} | |
void draw() { | |
pushMatrix(); | |
translate(185, 278); //creates the new origin point | |
rotate(radians(x)); //rotating in radians means degrees (0-360) | |
image(b, 0, 0); | |
text("let's do donuts!!!!!????!??!?!?!!", 200,10); | |
fill(map(mouseX,0,width,0,255)); | |
popMatrix(); | |
x++; | |
pushMatrix(); | |
translate(400, 478); | |
rotate(y); | |
image(c, 0, 0, 200+x, 200+x); | |
popMatrix(); | |
x++; | |
if (x > 50) { | |
x--; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment