jueves, 2 de octubre de 2014

Tarea Processing

PImage foto;
void setup() {
size(800, 800);
background( 255 );
foto=loadImage("ac01.jpg");

}
void draw () {
if (mouseX>0 && mouseX< width/2
&& mouseY>0 && mouseY< height/2 ){ image (foto, 0, 0);
}
PImage foto;
foto=loadImage("bandera-ecuador-futbol.jpg");
if (mouseX> width/2 && mouseX< width
&& mouseY> 0 && mouseY< height/2 ){
background( 255 );
image (foto, width/2, 0);
}

foto=loadImage("botas-de-futbol-adidas-20112.jpg");
if (mouseX>0 && mouseX< width/2
&& mouseY> height/2 && mouseY< height ){
background( 255 );
image (foto,0,height/2);
}

foto=loadImage("las Porristas1.jpg");
if (mouseX>width/2 && mouseX< width
&& mouseY> height/2 && mouseY< height ){
background( 255 );
image (foto,width/2,height/2);
}
}



No hay comentarios.:

Publicar un comentario