Paula Nicole Castillo: Proyecto Final
De Casiopea
Título | Proyecto Final |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | proyecto final |
Período | 2012- |
Asignatura | Taller Inicial Común 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
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. |
Alumno(s) | Paula Nicole Castillo |
Profesor | Herbert Spencer |
Archivo:Paula Castillo Proyecto Final.pdf |
import processing.pdf.*; PShape s; float Xspacer; // espaciador horizontal float Yspacer; // espaciador vertical (altura del triángulo equilátero de lado Xspacer) float margen = 100; // margen... obvio float tam = 20; // tamaño de los puntos o elementos void setup() { // calculo Yspacer por Pitágotas: Yspacer = sqrt( pow(Xspacer, 2) - pow(Xspacer,2)); s = loadShape("flor.svg"); size(1000, 1000, PDF, "Paula_Castillo_Proyecto_Final.pdf"); noStroke(); fill(0); smooth(); } void draw() { background(255); float initX; // inicio en X, que varía par-impar int rowCount = 0; // contador de filas int par; // par es 0, impar 1 for (float y = 0; y < height-margen; y+= s.height) { rowCount ++; // cuento las filas par = rowCount % 2; // genero el número par (0 ó 1) if ( par == 0) { initX = margen; // defino el inicio de la fila adelantada } else { initX = margen; // defino el inicio de la fila "normal" } for (float x = initX; x < width - margen; x += s.width) { shape(s, x, y,s.width,s.height); } } println ("Listo. Presione Ctrl+k para ver el pdf"); exit(); }