Francisca Campos tarea 4

De Casiopea
Dibujar con processing


TítuloDibujar con processing
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
AsignaturaTaller Inicial 1ª y 2ª Etapa,
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Francisca Campos
ProfesorHerbert Spencer

El objetivo de esta tarea era personalizar el ejemplo expuesto,a través de mis conocimientos en el programa

float d; void setup() {

size(700,600);
smooth();
background(58,439,256);
stroke(60, 435);
strokeCap(ROUND);

} void draw() {

if (mousePressed) {
  dist(mouseX, mouseY, pmouseX, pmouseY); 
   map(d, 40, 60, 1, 20); 
  strokeWeight(2.5);
  line(pmouseX, pmouseY, mouseX, mouseY);
}

} void keyPressed() {

if (key == 'd') { // linea calipso
  stroke (05,867,260);
}
if (key == 'i') { //  linea verde
  stroke (2,240,74);
}
  if (key == 'g') { //  linea blanca
  stroke (200,943,506);
}
 if (key == 'f') { //  linea rosada
  stroke (455,60,900);
}if (key == 'c') { // linea "azul"
  stroke (32,75,80);
}
if (key == 'r') { // linea roja
  stroke (320,4,0);
}
if (key == 'n') { // cambia fondo a blanco
  background(250);
 if (key == 'i') { // graba
   saveFrame("img/pizarra.jpg");
 }}

}