Daniela Araya Vargas: Trama Parametrizada
De Casiopea
Título | Daniela Araya Vargas: Trama Parametrizada |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Asignatura | Taller Inicial 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita, |
Carreras | Arquitectura |
Alumno(s) | Daniela Araya Vargas |
Profesor | Herbert Spencer |
int ANCHO = 600; int ALTO = 500; float mx, my, nx, ny; //float [][] coords; void setup() { size(ANCHO, ALTO); mx=30; //margen horizontal my=30;//margen vertical nx=50; //numero de elementos en x ny=50; //numero de elementos en y //coords = new float [nx*ny][2];//tabla para ordenar y guardar coordenadas smooth(); noLoop(); noStroke(); fill(0); } void draw () { background(255); float spx, spy, px, py; spx= (width - (2*mx)) /nx; spy = (height -( 2* my)) /ny; for (int y =0; y < ny; y++) { for (int x =0; x < nx; x++) { px = mx + (x * spx); py = my + (y * spy); float cr = random (0, 255); fill (cr, cr, cr); float c = random (1, 9); ellipse(px, py, c, c); } } }