viernes, 3 de febrero de 2012

sketch 03


int i,j;
void setup() {
  size(800,600,P3D);
  background((random(50)),(random(50)),50);
}
void draw() {
  stroke(0);
  strokeWeight(2);
  smooth();
  fill(255);
  stroke((random(100)),(random(200)),0);
  strokeWeight(random(2));
  smooth();
  fill((random(200)),(random(200)),200,200);
  i=mouseX-100;
  j=mouseY-50;
  triangle((random(i)),(random(-PI)),(random(PI)),(random(j)),(random(i)),(random(PI)));
  delay(10);
 spotLight(255, 255, 109, // Color
0, (random(40)), 200, // Position
0, -0.5, -0.5, // Direction
  PI/2, 2); // Angle, concentration
rotateY(map((random(150)), 0, width, 0, PI));
rotateX(map((random(150)), 0, height, 0, PI));
smooth();
}

No hay comentarios:

Publicar un comentario