Maria Jesus Martinez: tarea 4. Pizarra
De Casiopea
Título | Maria Jesus Martinez: tarea 4. Pizarra |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 4 |
Período | 2012- |
Del Curso | Imagen Escrita 2012, |
Carreras | Diseñ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 |
Profesor | Herbert 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); }
}