Maithé Escobar: curvas
De Casiopea
Título | Crear Nuevo Proyecto: Maithé Escobar: curvas |
---|---|
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 | 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) | Maithé Escobar |
Profesor | Herbert Spencer |
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(0, y, width, y); } for (float x = xSpacer; x < width; x +=xSpacer) { line(x, 0, x, height); }
}
void cruz(float x, float y, float tam,float z) {
float m = (tam/100)*100; stroke(264, 23, 10, 423); line(x-m, y+m, x+(m+1), y-1); line(x-m, y+m, x*m/2, y-1);
}
void draw() {
background(255); grilla(5, 5); for (int x = 5; x < width; x++) {
n = norm(x, 0, width); m = map(mouseX, 50, width, 9, 2); y = pow(n, m) * height; cruz(y,x,y,40); cruz(x, height-y, 8,70); } println(m); }