class NuestraImagen{ PImage imagen; float x; float y; //constructor NuestraImagen (String UnNombre){ x = 0; y = 50; imagen = loadImage(UnNombre); } void dibujarImagen(){ //tint (random(100,255),random(255),random(100,255)); //estamos usando los parametros de PImage image (imagen,x,y,imagen.width,imagen.height); } void darColor(){ tint (random(0,100),random(0,100),random(100,255)); //estamos usando los parametros de PImage //image (imagen,x,y,imagen.width,imagen.height); } }