lunes, 23 de abril de 2012

camino al código del proyecto (Processing)

//animación
//líneas horizontales R,G,B en random(100,255)
//que van de arriba a abajo
//formato PAL
//fondo negro

int x1, y1;
int x2, y2;

void setup() {
  background(0);
  size(720, 576); 
 
  x1=0;
  y1=0;
  x2=width;
  y2=0;
 
}

void draw() {
  stroke(random(100,255),0,0);
  line(x1,y1, x2,y2);
  //y1++;
  //y2++;
 
  y1+=1;
  y2+=1;
 
  stroke(0,random(100,255),0);
  line(x1,y1, x2,y2);
  //y1++;
  //y2++;
 
  y1+=1;
  y2+=1;
 
  stroke(0,0,random(100,255));
  line(x1,y1, x2,y2);
  //y1++;
  //y2++;
 
  y1+=1;
  y2+=1;
   
}

No hay comentarios:

Publicar un comentario