Ciclo for: Maximiliano Martínez

De Casiopea
Ciclo for: Maximiliano Martínez


TítuloCiclo for: Maximiliano Martínez
Tipo de ProyectoProyecto de Taller
Palabras Clavetarea 2
Período2013-2013
AsignaturaImagen Escrita 2013 - DIS
Del CursoImagen Escrita 2013 - DIS,
CarrerasDiseñ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
ProfesorHerbert 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;
}