Paulina Martinez IE2012 Tarea 4

De Casiopea
Paulina Martínez IE2012 Tarea 4


TítuloPaulina Martínez IE2012 Tarea 4
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
Período2012-2012
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)Paulina Martínez
ProfesorHerbert Spencer

Creación de una pizarra aplicando cambios de color en las lineas al presionar distintas teclas determinadas por la funcion void keyPressed.


int width=40; int color_v=350; float l, grosor;

void setup() {

size(700, 700); background(#D18466); smooth();


}


void draw () {

if (mousePressed) {

 l =dist (pmouseX, pmouseX, mouseX,mouseY);
 grosor = map (50, 30, 20, 6, 600);
 strokeWeight (12); 
 line(mouseX,mouseY,mouseY,mouseX); 

}


}


void keyPressed () {

if (key=='H') {

 stroke (#B9092D);

} if (key=='T') {

 stroke(#E7E802); 
 }

if (key=='G') {

 stroke(#DB09C6);

} }