Proyecto Final Escher es el mas choro y pulento

De Casiopea
Revisión del 08:24 27 sep 2018 de Hspencer (discusión | contribs.) (Texto reemplazado: «Helbert Spencer» por «Herbert Spencer»)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)
Proyecto final Juan Hernández



TítuloProyecto final Juan Hernández
Tipo de ProyectoProyecto de Curso
Palabras Claveproyecto final
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Juan Alejandro Hernández
ProfesorHerbert Spencer
  • Descarga el hermoso pdf para hacer el hermoso corte laser

Medio:Proyectohermoso.pdf

  • Aquí esta el código jijiji PROCESSING ES HERMOSO !!!!!!!!!!!!!!!!!

Medio:Finaljuanhernandez.zip

import processing.pdf.*;

PShape s; float Xspacer; // float Yspacer; // float margen = -118; // float tam = 2; //


void setup() {

 // calculo Yspacer por Pitágotas:
 Yspacer = sqrt( pow(Xspacer, 2) - pow(Xspacer/2, 2));
 s = loadShape("juan2.svg");
 size(952, 950, PDF, "final.pdf");  // se edita el tamaño para que calce el vector que generará el vacio y corte donde se debe
 noStroke();
 fill(0);
 smooth();

}

void draw() {

 background(255);
 
 float initX;      // 
 int rowCount = 0; // 
 int par;          // 
 for (float y = 0; y < height-margen; y+= s.height) {
   rowCount ++;    // cuento las filas
   par = rowCount % 2; // 
   if ( par == 0) {
     initX = margen ; //
   }
   else {
     initX = margen; // 
   for (float x = initX; x < width - margen; x += s.width) {
     shape(s, x, y,s.width,s.height); 
   }
 }


 println("PDF listeilorxx. Presione Ctrl+k para ver el pdf");
 exit();

}