Maximiliano Martínez: Programa de dibujo
De Casiopea
Título | Maximiliano Martínez: programa de dibujo |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 4 |
Período | 2013-2013 |
Asignatura | Imagen Escrita 2013 - DIS, |
Del Curso | Imagen Escrita 2013 - DIS, |
Carreras | Diseñ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) | Maximiliano Martínez |
Profesor | Herbert Spencer |
float a, b; void setup() { size(500, 500); background(255); stroke(0, 75); strokeWeight(.1); } void draw() { a = dist(mouseX, mouseY, pmouseX, pmouseY); if (mousePressed) { achurado(mouseX, mouseY, a); } } void achurado(float x, float y, float a) { pushMatrix(); translate(x, y); for (int ble = 0; ble < 30; ble++) { float lagarto = random(a); float juanita = random(a); line(-lagarto, juanita, juanita, -lagarto); } popMatrix(); } void keyPressed() { String filename = "img/retrato-"+year()+"_"+month()+"_"+day()+"___"+hour()+"-"+minute()+"-"+second()+".png"; if (key == 's' || key == 'S') { saveFrame(filename); println("se ha grjuanitaado exitosamente el archivo "+filename); } if (key == ' ') { background(255); } }