Carla Vergara: Trama parametrizada
De Casiopea
Título | Carla Vergara: Trama parametrizada |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Asignatura | Taller Inicial 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita, |
Carreras | Arquitectura |
Alumno(s) | Carla Vergara C |
Profesor | Herbert Spencer |
int ANCHO = 500; int ALTO = 500;
float mx, my, nx, ny;
void setup() {
size(500, 700);
mx = 60; // margen horizontal my = 10; // margen vertical nx = 14; // número de elementos en X ny = 50; // número de elementoa en Y
smooth(); noLoop();
noStroke(); fill(0);
}
void draw() {
background(255); 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(5, 10); ellipse( px, py, c, c); } }
}