Luciano Morales: Tarea 4

De Casiopea
Luciano Morales : tarea 4


TítuloLuciano Morales : tarea 4
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
Período2012-
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)Luciano Morales
ProfesorHerbert Spencer

Al deslizar el mouse se forma un trazo de color .

float d, grosor;
void setup() {
size(600,800);
background(0);
stroke (#C30E0E);
}

void draw() {
if (mousePressed);
d = dist(mouseX, mouseY, pmouseX, pmouseY);
grosor = map(d, 100, 700, 300, 40);
line (mouseX, mouseY, pmouseX, pmouseY); 
strokeWeight(5);

}

void keyPressed() { 
  
  if (key == 'r') { 
    background(#181407); 
    if (key == 't'){
      stroke(0);
 }  
 }
}