Diego Miranda f(x)M
Título | f(x) Matematica Normalizada |
---|---|
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) | Diego Miranda |
Profesor | Herbert Spencer |
Colocando el mouse en cierta posición las lineas permanecen rectas, y al desplazarlo en sentido contrario esta se tornan curvas entrelazándose entre sí, lo que provoca formas triangulares con una o dos aristas curvas.
____________________________________________________________________________________________________________________
float y, n; float m;
void setup() {
size(700, 700); }
/*
/ void grilla(int divsX, int divsY) {
stroke(240);
float xSpacer = width/(float)divsX; float ySpacer = height/(float)divsY; for (float y = ySpacer; y < height; y +=ySpacer) {
line(200, y, width, y+9);
} for (float x = xSpacer; x < width; x +=xSpacer) {
line(x*y, 79, x, height*4);
} }
/* */
void cruz(float x, float y, float tam) {
float t = tam*4; stroke(#00ff00 ); line(y, x+y, y/4, x); stroke (#8e4581); line(x-y, x+2,y,x*4);
}
void draw() {
background(255);
for (int x = 0; x < height; x++) {
n = norm(x, 0, height); m = map(mouseX, 0, width, 1, 25); y = pow(n, m) * height; cruz(y, x, y); cruz(x, x-y, y+x);
} println(m);
}