lunes, 8 de octubre de 2012

trabajo en clases


PImage pta1;
PImage pta2;
PImage pta3;
PImage pto1;
PImage pto2;
PImage pto3;

float speed = 6.5;

float x;
float y;

void setup() {
  fill(242,141,7);
  size(700,700);
  pta1 = loadImage("camilasilva.jpg");
  pta2 = loadImage("camilasilva2.jpg");
  pta3 = loadImage("camilasilva3.jpg");
  pto1 = loadImage("maximilianopino.jpg");
  pto2 = loadImage("maximilianopino2.jpg");
  pto3 = loadImage("maximiliano3.jpg");
 
  smooth();
  x = width/1;
  y = height/1;

}
void draw() {
  x += random(-speed, speed);
  y += random(-speed, speed);
 
  image(pta1, x-100, y-200, 100, 100);
  image(pta2, x-400, y-500, 100, 100);
  image(pta3, x-300, y-400, 100, 100);
  image(pto1, x-200, y-100, 100, 100);
  image(pto2, x-600, y-700, 100, 100);
  image(pto3, x-700, y-600, 100, 100);
 
 
 
}

No hay comentarios:

Publicar un comentario