Ilanit Hirnheimer: Imagen Escrita: Tarea 9
De Casiopea
Título | Ilanit Hirnheimer: Imagen Escrita: Tarea 9 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 8 |
Período | 2012- |
Del Curso | Imagen Escrita 2012, |
Carreras | 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., 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 |
Profesor | Herbert 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;
}