Monday, October 5, 2009

Processing

I'm in a TERRIBLE mood right now, because after hours of trying to get this to little applet (it's the chubby frog!) to show up on my page, it still won't work.

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