Francisca Campos tarea 3
De Casiopea
Título | lineas con mouse |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Asignatura | Taller Inicial 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Francisca Campos |
Profesor | Herbert Spencer |
float y, n; float m;
void setup() {
size(700, 700); //tamaño background (130);//color fondo }
void cruz(float y, float tam, float x) {
float t = tam*872; line(x,y,x-y,x*y); stroke (130); line(x,y,x-y,y+x); stroke (250); line (y,y,x/y,y-x); }
void draw() {
background(255); /* */ for (int x =0; x < height; x++) {
n = norm(x, 40, height); m = map(mouseX, 90, width, 51,0); y = pow(n, m) * height; cruz(x*y, y-x, y+x); cruz(x, y+x, y*x);
} println(m);
}