Juan Hernandez pintura kawaii
De Casiopea
Título | Juan hernandez tarea 8 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 8 |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Juan Alejandro Hernández |
Profesor | Herbert Spencer |
import processing.pdf.*;
PImage DanceGavinDance; PFont font; String[] code;
float ladoIzquierdo = 15; float ladoSuperior = 15; float ladoDerecho = 15; float ladoInferior = 30; float escala;
void setup() {
DanceGavinDance = loadImage("Dance Gavin Dance.jpeg"); size(609, 765, PDF, "JuanHernandez8.pdf");
float ancho = width - (ladoIzquierdo - ladoInferior); escala = ancho/(float)DanceGavinDance.width; noStroke(); noLoop(); background(255); font = createFont("Courier", 5); textFont(font, 6);
}
void draw() {
float spacer = 8;
for (int y = 0; y <DanceGavinDance.width; y += spacer) { for (int x = 0; x < DanceGavinDance.height; x += spacer) { float plotX = map(x, 0, DanceGavinDance.width, ladoSuperior, width -ladoIzquierdo); float plotY = map(y, 0, DanceGavinDance.height, ladoDerecho, ladoInferior + (DanceGavinDance.height * escala)); color c = DanceGavinDance.get(x, y); trazo(plotX, plotY, c, spacer); } } printCode(); println("Terminado"); exit();
}
void printCode() {
float interlinea = 0;
interlinea += 15;
}
.............................................
void trazo(float x, float y, color c, float amp) {
float ran=random(10, 50); stroke(c); line(x+ran, y+ran, x+4+ran, y+4+ran);
}