Ilanit Hirnheimer: Imagen Escrita: Tarea 9

De Casiopea

Archivo:ATID.pdf


TítuloIlanit Hirnheimer: Imagen Escrita: Tarea 9
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 8
Período2012-
Del CursoImagen Escrita 2012,
CarrerasDiseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property., Náutico y Marítimo"Náutico y Marítimo" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property.
Alumno(s)Ilanit Hirnheimer
ProfesorHerbert Spencer

import processing.pdf.*;

PImage ATID; PFont font; String[] code;

float I = 30; float AR = 20; float D = 20; float AB = 20; float escala;

void setup() {

 ATID = loadImage("ATID.jpg");  
 size(700,1100, PDF, "ATID.pdf"); 
 float ancho = width - (I - AB);
 escala = ancho/(float)ATID.width;
 noStroke();
 noLoop(); 
 background(255);
 font = createFont("CenturyGothic-Italic-48", 9);
 textFont(font, 8);
 code = loadStrings("codigo.pde");

}


void draw() {

 float spacer = 10;
 for (int y = 0; y <ATID.width; y += spacer) {
   for (int x = 0; x < ATID.height; x += spacer) {
     float plotX = map(x, 0, ATID.width, D, width +I);
     float plotY = map(y, 0, ATID.height, AR, D + (ATID.height * escala));
     color c = ATID.get(x, y);
     codigo (plotX, plotY, c, spacer);
   }
 }
 printCode();
 println("PDF listo");
 exit();

}

void printCode() {

 float interlinea = 5;
 interlinea += 10;

}



void codigo(float x, float y, color c, float amp) {

 float contador1 =round (random (4));
 fill(c);
 if (contador1 >2){
triangle (x, y-10, x-5, y, x+5, y);
 }
 if (contador1 >3){
   rect(x-3,y,10,10);
 }

} ___________________________________- import processing.pdf.*;

PImage ATID; PFont font; String[] code;

float I = 30; float AR = 20; float D = 20; float AB = 20; float escala;

void setup() {

 ATID = loadImage("ATID.jpg");  
 size(700,1100, PDF, "ATID.pdf"); 
 float ancho = width - (I - AB);
 escala = ancho/(float)ATID.width;
 noStroke();
 noLoop(); 
 background(255);
 font = createFont("CenturyGothic-Italic-48", 9);
 textFont(font, 8);
 code = loadStrings("codigo.pde");

}


void draw() {

 float spacer = 10;
 for (int y = 0; y <ATID.width; y += spacer) {
   for (int x = 0; x < ATID.height; x += spacer) {
     float plotX = map(x, 0, ATID.width, D, width +I);
     float plotY = map(y, 0, ATID.height, AR, D + (ATID.height * escala));
     color c = ATID.get(x, y);
     codigo (plotX, plotY, c, spacer);
   }
 }
 printCode();
 println("PDF listo");
 exit();

}

void printCode() {

 float interlinea = 5;
 interlinea += 10;

}