Esteban García Bravo
Código de imágen interactiva // Interactive image code
int x;
int y;
PImage tex;
PImage qr;
void setup(){
size(900,900);
rectMode(CENTER);
frameRate(18);
fill(127,197,214);
x=0;
tex= loadImage("rayo.png");
qr= loadImage("qr.png");
}
void draw(){
background(100);
rect(x,mouseY,300,400,10);
image(tex,mouseX,mouseY,100,100);
//image(qr,
x=x+10;
if(x>width){
x=0;
fill(random(255),random(255),random(255));
}
}

Download processing support materials here
Código de interacción con teclado/ Interactive keyboard code
PImage nube;
void setup(){
size(600,600);
background(213,31,255);
nube=loadImage("nube.png");
imageMode(CENTER);
}
void draw(){
image(nube,mouseX,mouseY);
}
void keyPressed(){
if(key=='s'){
background(0,0,0);}
}