Joaquín Avendaño - Tarea 3
De Casiopea
Título | Joaquín Avendaño - Tarea 3 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2012- |
Asignatura | Imagen Escrita 2012, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Joaquín Avendaño |
Profesor | Herbert Spencer |
void graficar (float amplitud, float frecuencia) {
float ant = 0, act = 0; for (int x=0;x<=500;x+=2) { act = amplitud*sin(radians(frecuencia*x)); line (x+2, 300-ant, x, 10+act); ant=act; }
} void setup() {
size (700,700); background(0); frameRate (100);
}
void draw() {
background(0); stroke (255,0,38); strokeWeight (2); smooth (); graficar(mouseY+10, mouseX/4);
}