María Jesús Arestizábal Tarea 4

De Casiopea
Revisión del 09:00 31 may 2012 de Jesuarestizabal (discusión | contribs.)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)
Tarea 4


TítuloTarea 4
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
AsignaturaImagen Escrita 2012,
Del CursoImagen Escrita 2012, 1º Diseño 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)María Jesús Arestizábal
ProfesorHerbert Spencer

// Construir un programa para dibujar, basándose en el ejemplo hecho en clases.

float d;

void setup() {

size(700,700);
smooth();
background(300,200,100);
stroke(50, 500);
strokeCap (SQUARE);

}

void draw() {

if (mousePressed) {
  
  d = dist(mouseX, mouseY, pmouseX, pmouseY); 
 
  strokeWeight(10); 
  line(mouseX, mouseY, pmouseX, pmouseY);
}

}

void keyPressed() {

if (key == 'm') {
 stroke(20,10,60);

} if (key == 'j') {

 stroke (100, 100, 66);

} if (key == 'a') {

 stroke (308, 100, 10);
}

if (key == 's'){

 stroke (77,90);

} if (key == 'f') {

 stroke (666,999,77);

}

if (key == 'l') {
  background(245);
}

}