Naranjas
De Casiopea
Título | |
---|---|
Asignatura | Imagen Escrita, |
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. |
Alumno(s) | Alessandra Robinson Torres |
Profesor | Herbert Spencer |
float mx, my, nx, ny; void setup() { size(700, 480); mx=30; //margen horizontal my=30;//margen vertical nx=25;//numero de elementos en x ny=25;//numero de elementos en y smooth(); noLoop(); noStroke(); fill(250, 117, 10); } 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 c = random (1, 10); ellipse(px, py, c, c); } saveFrame("naranjitas-##.jpg"); } }