Alyssa Ruts: Dibujar con Processing

De Casiopea
{{{Título}}}


Título
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
AsignaturaTaller Inicial Común 1ª y 2ª Etapa,
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)Alyssa Ruts
ProfesorHerbert Spencer


import processing.pdf.*;
boolean saveOneFrame = false;


void setup () { 
 size (700, 700);
 stroke(0);
 background(0);
 smooth ();
 
}

void draw () {
  line(mouseX, mouseY, pmouseX, pmouseY);
  if (saveOneFrame == true) {  // When the saveOneFrame boolean is true,
beginRecord(PDF, "insects-####.pdf");  // start recording to the PDF
  }
  if (saveOneFrame == true) {  // If the PDF has been recording,
endRecord();  // stop recording,
saveOneFrame = false;  // and set the boolean value to false
}
}

 void mousePressed () {
  stroke (0);
  strokeWeight (25);
}

void mouseReleased () {
  stroke (255);
  strokeWeight (1);
}

void keyPressed() { 
if(key=='p'){
     saveFrame("10.000 lineas.jpg"); // grabar imagen
  }
  
}