Kimlo: Ciclo for
De Casiopea
Título | Kim López: Ciclo for |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 2 |
Período | 2013- |
Asignatura | Imagen Escrita, |
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) | Kim López |
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) { rect(x, y, mouseX/80, mouseX/80); } } saveFrame("####.png"); } void calc() { xSpace = (width - 3 * margen) / 25; ySpace = (height - 3 * margen) / 25; }