Tarea 3 camila herrera
De Casiopea
Título | tarea 3 camila herrera, curva que se mueve con el mouse |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2012- |
Asignatura | Taller Inicial Común 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Camilaherrera |
Profesor | Herbert Spencer |
//se trata de una ecuación, que elabora una curva que se mueve a través del mause
float y, n; float m;
void setup() {
size(700, 700); }
void draw(float y, float x, float tam) {
stroke(60); line(x*y, y++, x+y/5, y+x/5);
}
void draw() {
background(0);
for (int x = 5; x < width; x=x+5) {
n = norm(x,width,0); m = map(mouseY, 0, width, 0, 50); y = pow(n, m) * height;
stroke (0); draw(x, y, 100);
} println(m); }