Javiera Martinez, Dibujo
De Casiopea
Título | 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) | Javiera Martínez |
Profesor | Herbert Spencer |
void setup() {
size(500, 500); background(255); noFill(); stroke(0, 100);
}
void draw() {
float m = dist(mouseX, mouseY, pmouseX, pmouseY); if (mousePressed) { herramienta (mouseX, mouseY); }
}
void herramienta (float x, float y) {
pushMatrix(); translate(x, y); beginShape(); for (float m=2;m < 3; m++) {
ellipse(6, 80, 100, 50);} endShape(); popMatrix();
}
void herramienta(float x, float y, float tam) {
pushMatrix(); translate(x, y); beginShape(); for (float m=1;m < tam; m+= 4*m) { ellipse(6, 8, 1, 1); } endShape(); popMatrix();
}
void keyPressed() {
String filename = "img/retrato-"+year()+"."+month()+"."+day()+"-"+hour()+"-"+minute()+"."+second()+".png"; if (key == 's' || key == 'S') { saveFrame(filename); println("Guardado"+filename); } if (key == ' ') { setup(); }
}