Montserrat Salvadó tarea 5

| Título | Montserrat Salvadó tarea 5 |
|---|---|
| Tipo de Proyecto | Proyecto de Curso |
| Palabras Clave | tarea 5 |
| Período | 2012- |
| Asignatura | Imagen Escrita 2012, |
| Del Curso | Imagen Escrita 2012, |
| Carreras | Arquitectura |
| Alumno(s) | Montserrat Salvadó |
| Profesor | Herbert Spencer |
PFont tipografia;
float d, grosor;
void setup() {
size(screen.width,screen.height);
smooth();
background(#FCE740);
stroke(255,108);
text("-RANPBR-", 50,700);
}
void draw(){
if (mousePressed){
d = dist(mouseX + 1, mouseY, pmouseX, pmouseY);
grosor=map(0, 10, 100, 200, 400);
strokeWeight(6.8);
line(mouseX, mouseY ,pmouseX, pmouseY);
ellipse(mouseX, mouseY, 20, 30);
}
}
void keyPressed() {
if (key== 'q') {
background(0); }
if (key== 'w'){
stroke(#FC1414);}
if (key== 'e') {
stroke(#14FCEB);
background(#E9FA08);}
if (key== 'r') {
stroke(#FA08B2);
}
}