Carla Stipo tarea 8

De Casiopea
reminiscencias arqueológicas


Títuloreminiscencias arqueológicas
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 8
AsignaturaImagen Escrita 2012,
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Carla Stipo
ProfesorHerbert Spencer

Medio:Carlastipo.rar

import processing.pdf.*;

PImage dali; PFont font; String[] code;

float Izquierda = 24; float Arriba = 22; float Derecha = 22; float Abajo = 24; float escala;

void setup() {

dali = loadImage("sdali13.jpg");  
size(609, 765, PDF, "carlastipo.pdf"); 
float ancho = width + (Abajo - Izquierda);
escala = ancho/(float)dali.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 <dali.width; y += spacer) {
  for (int x = 0; x < dali.height; x += spacer) {
    float plotX = map(x, 0, dali.width, Arriba, width +Derecha);
    float plotY = map(y, 0, dali.height, Izquierda, Abajo + (dali.height - escala));
    color c = dali.get(x, y);
    trazo(plotX, plotY, c, spacer);
  }
}
printCode();
println("aaaaaaabrete");
exit();

}

void printCode() {

float interlinea = 0;
interlinea += 15;

} ......................................

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

fill(c);

int puntos = round(random(18));

for(int i = 0; i <= puntos; i++){
  float a = hue(c) + random(1);    

float b = saturation(c);

     float r = brightness(c) + random(20);
  pushMatrix();
  line(x,y,x+random(20),y+random(4, 30)); 
  stroke(a,b,r);
  popMatrix();
}

}