Proyecto Donny Ahumada

De Casiopea
Proyecto Donny Ahumada
TítuloProyecto Donny Ahumada
Tipo de ProyectoProyecto de Taller, Proyecto de Curso
Palabras Claveproyecto final
Período2012-
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)Donny Ahumada
ProfesorHerbert Spencer
PDFArchivo:Http://dl.dropbox.com/u/20674936/final.pdf
URLhttp://dl.dropbox.com/u/20674936/proyfinal.zip

/*Descargar archivo zip con los archivos SVG para revision*/

import processing.pdf.*; PShape svg; //Importancion de archivo matriz SVG

void setup() {

 size (1000, 1000, PDF, "final.pdf");//tamaño del lienzo mas bordes
 background(255);//color de fondo
 svg = loadShape("final.svg");//se lee la forma matriz 
 smooth();

}

void figura() {

 shape(svg, 0, 0, 240, 240);//se carga la forma inicial en el tamaño
 svg.disableStyle();
 strokeWeight(0.25);//grosor de la línea

}

void rotar() { //rotar en 90°

 for (int y=20; y<960; y=y+240)
 {
   for (int x=260; x<960; x=x+240)
   {
     pushMatrix();
     translate(x, y);
     figura();
     rotate(PI/2);
     figura();
     popMatrix();
   }
 }

}

void draw() {//se dibuja en el pdf

 rotar();
 println("Terminado. Ctrl + K para ver carpeta del pdf");
 exit();

}