Valeria Contreras: Curva Matemática

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.
Valeria Contreras: Curva Matemática


TítuloValeria Contreras: Curva Matemática
Tipo de ProyectoProyecto de Taller
Palabras Clavetarea 3
Período2012-
AsignaturaTaller Inicial Común 1ª y 2ª Etapa,
Del CursoImagen Escrita,
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)Valeria Contreras
ProfesorHerbert Spencer
void graficar(float amplitud, float frecuencia) { 
  float ant = 0, act = 0; 
  for (int x=0;x<=700;x+=3) { 
    act = amplitud*sin(radians(frecuencia*x)); 
    line(x, 250+ant, x, 250+act); 
    ant=act;
  }
} 
void setup() { 
  size(500, 500); 
  background(#030000); 
  frameRate(100);
}

void draw() { 
  background(#FFFFFF); 
  strokeWeight(.25);
  smooth();
  graficar((mouseY)/10, mouseX/6);
}

void keyPressed(){
  if (key == 'g'){
    saveFrame("img/##.jpg");
  }
}