Javiera Martinez, Dibujo

De Casiopea


TítuloDibujo
Tipo de ProyectoProyecto de Taller
Palabras Clavetarea 4
Período2013-2013
AsignaturaImagen Escrita 2013 - DIS,
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)Javiera Martínez
ProfesorHerbert 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();
 }

}