Maria Jesus Martinez: tarea 4. Pizarra

De Casiopea


TítuloMaria Jesus Martinez: tarea 4. Pizarra
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
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)Maria Jesus Martinez
ProfesorHerbert Spencer
float d, grosor;  // distancia y grosor 
void setup() { 
  size(screen.width, screen.height); //pantalla completa 
  smooth(); // suavizado (anti-alisaing) 
  background(#FFFFFF); // fondo negro 
  stroke(#339999); 
  strokeCap(PROJECT); 
} 

void draw() {

 if (mousePressed) { 
   // velocidad = distancia / tiempo 
   /* calcula distancia entre 
      la posición actual del mouse y la posición anterior */ 
   d = dist(mouseX, mouseY, pmouseX, pmouseY); 
   grosor = map(d, 0, 100, 1, 20); 
   strokeWeight(30);  // strokeWeight(grosor) 
   line(mouseX, mouseY, pmouseX, pmouseY); 
 } 

}

void keyPressed() {

 if (key == 'j') { // graba 
   background (#9966ff); 
 } 

}