Estudio del gesto: Hospedería del Errante

De Casiopea



TítuloEstudio del gesto: Hospedería del Errante
Período2011-2011
AsignaturaPresentación al Lenguaje Abierto
Del CursoPresentación al Lenguaje Abierto,
CarrerasDiseño Gráfico"Diseño Gráfico" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property.
Alumno(s)Diego Reyes, Marcelo Velásquez
ProfesorHerbert Spencer, Marcelo Araya, Katherine Exss

Processing


void setup(){
  size(300,600);
  colorMode(0, width);//cambia colores...
  background (255);
}

// variables
float mouseFactor; // posición del mouse en X entre 0..1
float noisy; // ruido de los milisegundos (el terreno)
float sinEnvelope; // la envolvente de la función seno
float fraq; // la multiplicación de las anteriores (la resultante)
float y; // la aimplificación de fraq * el alto de la película

void draw(){
//background (255,0,0);//redibujando el fondo
strokeWeight(1);
for (int x=1; x<height; x++){//separando gradiente de motas
  
  stroke(height/x);
  line(x,0, x,height);
}
/*
  for (int x=10; x<height; x++){//cambie width con height
    
    mouseFactor = ((float)mouseY/(float)width);
    sinEnvelope = (abs(sin(x/(width/20)*2)));    //0..1..0
    noisy = noise((millis()/10000.0)+(x/1000.0));
    fraq = mouseFactor * sinEnvelope * noisy;             //0..1
    y =  height/2 - (fraq * (float)height);//dividi en 2 height

    strokeWeight(10);
    stroke(255);
    point(y,x);
  }*/
  strokeWeight(1);
  for(int i = 0; i < width; i++) {
    /*float r = random(255);
    float x = random(0, width);
    stroke(r, 100);
    line(i, 0, x, height);*/
    int h=i;
    mouseFactor = ((float)mouseY/(float)width);
    sinEnvelope = (abs(cos(i/(width/20))));    //0..1..0
    noisy = noise((millis()/10000.0)+(i/1000.0));
    fraq = mouseFactor * sinEnvelope * noisy;             //0..1
    y =  height/2 - (fraq * (float)width);//dividi en 2 height
    
    float r = random(2);
    float x = random(0, width);
    
      stroke(x, 20);
      line(h, 0, y, height);
    
    

   
  }
}