Estudio del gesto: Hospedería Pie de Cruz

De Casiopea
La versión para imprimir ya no se admite y puede contener errores de representación. Actualiza los marcadores del navegador y utiliza en su lugar la función de impresión predeterminada del navegador.



TítuloEstudio del gesto: Hospedería Pie de Cruz
Tipo de ProyectoProyecto de Curso
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., Diseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property.
Alumno(s)Inti Guzmán, Valentina.n
ProfesorMarcelo Araya, Herbert Spencer



int a;
int b;
boolean direction;

void setup(){
  // ani = new Tween(this, 2);
  size(500,200);
  colorMode(RGB, width);
  stroke (RGB,211,203,203);
  a = 209;
  b = width;
  direction = true;
  frameRate (80);
  //noFill();
}
float y = 100;

void draw(){
  stroke(40);
  noFill();
  beginShape();
  for(int i=0; i<width;i++){
    vertex(i, singraph((float)i/width)*height);//dibujo el trazo curvo de atrás
  }
  endShape();
  
  stroke(55);
  beginShape();
  for(int i=0;i<width;i++){
    vertex(i,singraph((float)i/width)*height);//el otro pedazo de la curva
  }
  endShape();
  a++;//para hacer que el fondo se degrade a más luminoso
  if(a > width) {
    a = 0;
    direction = !direction;
  }
  
  if(direction == true){
    stroke(a);
  } else {
    stroke(width-a);
  }
  
 // line(a, 0, a, 10);//ubicacion de la linea

  b--;
  if(b < 0) {
    b = width;
  }
  if(direction == true) {
    stroke(width-b);
  } else {
    stroke(b);
  }
 // line(b, height/2+1, b, height);
  y++;
  if(y>width){
    y=0;
    direction = !direction;
  }
 
  //if (y<0) {
   //y=width;
  //}
 
  line(0,50,y,height-y);
  line(0,150,y,y);
  line(500,50,y,height-y);
  line(500,150,y,y);
}
//if (y=0){ line ani.reverse();
 // }
float singraph(float sa) {
  sa = (sa - 0.5) * 1.0; //scale from -1 to 1
  sa = sin(sa*PI)/2 + 0.5;
  return sa;
}