Anyway, it is online, so here it is.
Gorgeous, no?
I have classmates that get nicer results in about 3 minutes, whereas this took me DAYS to figure out.
*(&@^#
(@*#^T@%$!!)!!!!!!!!!!!
!!!!!!!!!!! :(
Code used:
PImage a;
PImage b;
int X = -20;
void setup() {
size(600, 600);
a = loadImage("avatar.gif");
b = loadImage("avatar2.gif");
}
void draw() {
background(255);
imageMode(CENTER);
if (X < 0){
image(a,mouseX,mouseY);
}
else{
image(b,mouseX,mouseY);
}
X++;
if(X>20)
{
X=-20;
}
}
No comments:
Post a Comment