Francisca Manriquez- Mecanismo dibujo

De Casiopea


TítuloMecanismo de Dibujo
Tipo de ProyectoProyecto de Taller
Palabras Clavetarea 4
Período2013-
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)Francisca Manríquez Allendes
Cara
Picaflor
Paisaje
Bicicleta
Rostro




float alt;

void setup() {
  size(500, 500);
  background(255);
  stroke(0, 100);
  strokeWeight(5);
  smooth(5);
}

void draw() {
 alt = dist(mouseX, mouseY, pmouseX, pmouseY);
  if (mousePressed) {
    achurado(mouseX, mouseY, alt);
  }
}

void achurado(float x, float y, float mag) {

  translate(x, y);
  for (int i = 4; i < 8 ; i ++) {
    ellipse((-mag), (mag),(mag),(-mag));
    
    }
}

void keyPressed() {
  String filename = "achuradopruebaFMA";
  if (key == 's' || key == 'S') {
    saveFrame(filename);
    println("se ha grabado exitosamente el archivo "+filename);
  }
  if (key == ' ') {
    background(255);
  }
}