Gabriela Correa: Curva Matemática
De Casiopea
Título | Gabriela Correa: Curva Matemática |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2012-2012 |
Del Curso | Imagen Escrita 2012, |
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) | Gabriela Correa |
Profesor | Herbert Spencer |
float y, n; float m; void setup() { size(700, 700); } void res(float x, float y, float tam) { stroke(60, 20, 180, 100); line(x, y-x, x, y+x); } void draw() { background(150, 60, 80); for (int x = 0; x < width; x++) { n = norm(x, 0, width); m = map(mouseX, 0, width, 0, 5); y = pow(n, m) * height; res(x, y, 5); res(x, height-y, 5); } }