|
BImage test;
BFont test2;
int x,y;
void setup(){
size(300,300);
test =loadImage("U{6Q80MMPL1NNWSALK`Y4Z.gif");
test2 = loadFont("Arial.vlw");
x=x+1;
y=y+1;
}
void loop(){
image(test,123,123);
fill(255,0,0);
textFont(test2,80);
text("hello",mouseX,mouseY);
fill(255,255,255);
rect(mouseX,mouseY,10,10);
if(mousePressed){
rect(mouseX,mouseY,50,50);
fill(255,255,255);
ellipse(x,y,20,20);
}
}
|