Consuelo Santis: Pincel

De Casiopea
Pincel-Timbre


TítuloPincel-Timbre
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
Período2013-
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - DIS,
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)Consuelo Santis Escudero
ProfesorHerbert Spencer
int negro = 0;
int fondo = 255; // fondo blanco


void setup() {
  size(600, 600);
  background(fondo);
  smooth(2);
  strokeWeight(5);
  stroke(negro, 50);
}
void draw() {  
  if (mousePressed)
  {
    line(mouseX, mouseY, pmouseX + 15, pmouseY + 15);
    line(mouseX, mouseY, pmouseX - 15, pmouseY - 15);
    line(mouseX, mouseY, pmouseX + 15, pmouseY - 15);
    line(mouseX, mouseY, pmouseX - 15, pmouseY + 15);
  }
}

void keyPressed() {      
  if (key=='r') { // Color rojo
    stroke(255, 0, 0, 50);
  }
  if (key=='n') { // Color negro
    stroke(negro, 100);
    smooth(2);
  }
  if (key == ' ') { // Presionar espacio para borrar todo
    background(fondo);
  }
  if (key == 'g') { // g para guardar una img
    saveFrame("pincel-####.png");
  }
}