Oriel Badillo tarea 3
De Casiopea
Título | Oriel Badillo - Imagen Escrita 2012, 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) | Oriel Badillo |
Profesor | Herbert Spencer |
void graficar(float amplitud, float frecuencia){ float ant = 0, act = 0; for(int x=0;x<=700;x+=4){ act = amplitud*sin(radians(frecuencia*x)); line(x-8,500+ant,x,250+act); ant=act; } } void setup(){ size(700,700); background(230); frameRate(20); }
void draw(){ background(230); graficar((700-mouseY)/2,mouseX/4); }