Daniel Galaz Función graficada que se mueve
De Casiopea
Título | Proyecto Función graficada móvil |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2012- |
Asignatura | Taller Inicial 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012 |
Carreras | Arquitectura |
Alumno(s) | Daniel Galaz |
Profesor | Herbert Spencer |
float y, n; float m;
void setup() {
size(600, 600);
}
void draw(float x, float y, float tam) {
stroke(#8EEA05); line(x*y, y++, x+y/3, y+x/2);
}
void draw() {
background(0);
for (int x = 1; x < width; x=x+1) { n = norm(x,width,0); m = map(mouseX, 0, width, 0, 50); y = pow(n, m) * height;
stroke (0); draw(x, y, 40);
} println(m);
}