Andrea Leiva: Trama Parametrizada

| Título | Andrea Leiva: Trama Parametrizada |
|---|---|
| Tipo de Proyecto | Proyecto de Curso |
| Asignatura | Taller Inicial 1ª y 2ª Etapa, |
| Del Curso | Imagen Escrita, |
| Carreras | Arquitectura |
| Alumno(s) | Andrea Leiva |
| Profesor | Herbert Spencer |
int ANCHO = 500; int ALTO = 500;
float mx, my, nx, ny;
void setup() {
size(500, 700); mx = 10; // margen horizontal my = 2; // margen vertical nx = 60; // número de elementos en X ny = 33; // número de elementoa en Y smooth(); noLoop(); noStroke(); fill(0);
}
void draw() {
background(250);
float spx, spy, px, py;
spx = (width - (3 * mx)) / nx;
spy = (height - (-3* my)) / ny;
for (int y = 0; y < ny; y++) {
for (int x = 0; x < nx; x++) {
px = mx + 90 + (x * spx);
py = my + 35 +(y * spy);
float c = random(4, 23);
ellipse( px, py, c, c);
}
}
}