Valeria Contreras: Curva Matemática
De Casiopea
Título | Valeria Contreras: Curva Matemática |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 3 |
Período | 2012- |
Asignatura | Taller Inicial Común 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita, |
Carreras | Diseñ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 |
Profesor | Herbert 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"); } }