Identidad lineal

De Casiopea


Títuloidentidad lineal
Tipo de ProyectoProyecto de Curso
Palabras Clavelineal
Período2013-
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Gonzalo Gallo
ProfesorHerbert Spencer

float margen, xSpace, ySpace;

int xElems, yElems; void setup() {

 size(500, 500);
 margen = 50;
xElems = 10;
yElems = 10;

calc();

mouseX = xElems;
mouseY = yElems;

} void draw() {

background(255);
xElems = (int) mouseX / 7;
yElems = (int) mouseY / 8;

calc();


for (float y = margen; y <= height-margen; y += ySpace) {
  for (float x = margen; x <= width-margen; x += xSpace) {
    line(x, y, 4, 7);
  }
}

} void calc() {

xSpace = (width - 2 * margen) / (float)(xElems - 1);
ySpace = (height - 2 * margen) / (float)(yElems - 1);

}