Ariel Carrasco pizarra

De Casiopea




Títulopizarra
Palabras Clavetarea 4
Del CursoImagen Escrita 2012
CarrerasDiseño Industrial
Alumno(s)Ariel Carrasco

float d, grosor; void setup() {

 size(screen.width, screen.height); 
 smooth();  
 background(0);  
 strokeCap(ROUND);

}

void draw() {

 if (mouseButton == LEFT) { // boton secundario del mouse
   d = dist(mouseX, mouseY, pmouseX, pmouseY); 
   strokeWeight(3);  
   line(mouseX, mouseY, pmouseX, pmouseY); 
   stroke(250);
 } 
 else if (mouseButton == RIGHT) {
   strokeWeight(50);
   line(mouseX, mouseY, pmouseX, pmouseY); 
   stroke(0);
 }

}

void keyPressed() {

 if (key == ' ') { 
   background(0);
 }

}