Ciclo for: Maximiliano Martínez
De Casiopea
Título | Ciclo for: Maximiliano Martínez |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 2 |
Período | 2013-2013 |
Asignatura | Imagen Escrita 2013 - DIS |
Del Curso | Imagen Escrita 2013 - DIS, |
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) | Maximiliano Martínez |
Profesor | Herbert Spencer |
float margen, xSpace, ySpace; int xElems, yElems; void setup() { size(500, 500); margen = 30; xElems = 60; yElems = 60; calc(); } void draw() { background(255); fill(0,10); smooth(150); calc(); for (float y = margen; y <= 480; y += ySpace) { for (float x = margen; x <= 480; x += xSpace) { ellipse(x, y, 4, 4); } } } void calc() { xSpace = (width - 3 * margen) / 25; ySpace = (height - 3 * margen) / 25; }