Camila Saavedra: tarea 4

De Casiopea


TítuloCamila saavedra : tarea 4
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
AsignaturaImagen Escrita 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)Camila Saavedra
ProfesorHerbert Spencer

float d, grosor;

void setup () { size (screen.width, screen.height);//Pantalla Completa smooth ();//líneas suaves background (255);//fondo blanco stroke (200, 100);//trazo negro, con transparencia strokeCap (ROUND);//el final del trazo tiene forma redonda }

void draw () { if (mousePressed) { d =dist (mouseX, mouseY, pmouseX, pmouseY); grosor = map (30, 50, 65, 1, 255); strokeWeight (4); //grosor de la línea line(mouseX, mouseY, pmouseX, pmouseY); //proyección de la línea } }

void keyPressed () { if (key=='g') {//se presiona g y guarda el proyecto saveFrame ("img/######.jpg"); } if (key =='b') {//borra el dibujo background (255); } if (key=='1') {//el trazo se torna color morado stroke (#6E00BF, 100); } if (key=='2') {//el trazo se torna color violeta stroke(#4111D6, 100); } if (key=='3') {//el trazo se torna color azul stroke(#1130D6, 100); } if (key=='4') {//el trazo se torna color celeste stroke(#34ABE0); } if (key=='5') {//el trazo se torna negro stroke(#1ED1C3); } }