Eduardo Arratia Función Matemática Mouse 2012
De Casiopea
Título | Eduardo Arratia Función Matemática Mouse 2012 |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 3 |
Asignatura | Taller Inicial 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Eduardo Arratia |
Profesor | Herbert Spencer |
El espesor se crea por la cantidad de lineas, al mover el mouse se crea un ruido que alcanza casi una densidad.
float y,n; float m; void setup (){ size (700,700); } void grilla (int divsX, int divsY){ stroke (#F5620C); float xSpacer = width/(float)divsX; float ySpacer = height/(float) divsY; for (float y= ySpacer; y< height; y+=ySpacer){ line (0,y,width,y); } for (float x= xSpacer; x<width; x+=xSpacer){ line (x,0,x,height); } } void cruz(float x, float tam, float y) { float t = tam; stroke(#4A48E0); line(x-t, y++, x+20, y+t); line(x/t, y+t, x+t, y/t); } void draw (){ background (255); grilla (30,30); for(int x=0; x<width;x++){ n= norm (x,10,height); m = map (mouseX,0,width,1,10); y=pow (n,m)*width; cruz (x,y,9); cruz (x,height-y,5); } println(m);}