María Jesús Arestizábal: Imagen Escrita, Tarea 9

De Casiopea


TítuloTarea 9
Tipo de ProyectoProyecto de Curso
Período2012-
Del CursoImagen Escrita 2012,
CarrerasDiseñ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., 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.
Alumno(s)María Jesús Arestizábal
ProfesorHerbert Spencer

import processing.pdf.*;

PImage paisaje; PFont font; String[] code;

float I = 8; float AR = 8; float D = 8; float AB = 8; float escala;

void setup() {

paisaje = loadImage("paisaje.jpg");  
size(609, 765, PDF, "paisaje.pdf"); 
float ancho = width - (I - AB);
escala = ancho/(float)paisaje.width;
noStroke();
noLoop(); 
background(255);
font = createFont("Courier", 9);
textFont(font, 8);
code = loadStrings("trazo.pde");

}


void draw() {

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

}

void printCode() {

float interlinea = 0;
interlinea += 15;

}

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

fill(c);
  
 triangle( x-6, y, x, y-14, x+10, y);
 ellipse(x, y, 8, 24);
 

}