Jaime López: tarea 8
De Casiopea
Título | Jaime López: tarea 8 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 8 |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Jaime López |
Profesor | Herbert Spencer |
import processing.pdf.*;
PImage paisaje2; PFont font; String[] code;
float a = 50;
float b = 45;
float d = 65;
float e = 35;
float escala;
void setup() {
paisaje2 = loadImage("paisaje.jpg"); size(609, 765, PDF, "paisaje3.pdf");
float ancho = width + (b - a); escala = ancho/(float)paisaje2.width;
noStroke(); noLoop(); background(255); smooth();
font = createFont("Courier", 3); textFont(font, 6);
code = loadStrings("pincel.pde");
}
void draw() {
float spacer = 8;
for (int y = 0; y <paisaje2.width; y += spacer) { for (int x = 0; x < paisaje2.height; x += spacer) {
float plotX = map(x, 0, paisaje2.width, b, width +e); float plotY = map(y, 0, paisaje2.height, b, d + (paisaje2.height * escala)); color c = paisaje2.get(x,y);
trazo(x, y, c, spacer); } } printCode(); println("PDF terminado"); exit();
}
void printCode() {
float interlinea = 6; interlinea += 9;
}
trazo----------------
void trazo(float x, float y, color c, float amp) {
fill(c); ellipse(x, y, map(brightness(c), 69, 255, amp, 0), map(brightness(c), 0, 461, amp, 36));
}