Escobar Camilo: Proyecto Final Teselación

De Casiopea

Archivo:CamiloEscobar.ProyectoFinale.pdf


TítuloTeselación
Tipo de ProyectoProyecto de Curso
Palabras Claveproyecto final
AsignaturaImagen Escrita 2012,
Del CursoImagen Escrita 2012,
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)Camilo Escobar
ProfesorHerbert Spencer
//* Modificación achivo desde 0penprocessing.org 

import processing.pdf.*;

void setup() {

  size(1000, 1000, PDF, "CamiloEscobar.ProyectoFinal.pdf");
  stroke(0);
  background(255);

  for (int i=0; i<20; i++) {
    pushMatrix();
    for (int j=0; j<20; j++) {
      fullsquare();
      translate(0, 115);
    }
    popMatrix();
    translate(115, 0);
  }
}

void tesela() {
  beginShape();
  vertex(0,0);
  vertex(57, 57);
  vertex(0, 57);
  vertex(57, 0);
  endShape();
}

void fullsquare() { 
  pushMatrix();
  fill(255);
  tesela();
  translate(0, 115); 
  rotate(3*PI/2);
  fill(255);
  tesela();
  rotate(PI/2); 
  translate(115, 0); 
  rotate(PI);
  fill(255);
  tesela();
  rotate(PI);
  translate(0, -115);
  rotate(PI/2);
  fill(255);
  tesela();
  popMatrix(); 
  println("listo");
  exit();
}