Ariel Carrasco pizarra
De Casiopea
Título | pizarra |
---|---|
Palabras Clave | tarea 4 |
Del Curso | Imagen Escrita 2012, |
Carreras | 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) | 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); }
}