Valentina Hernández: Ciclo For 3

De Casiopea


TítuloValentina Hernández: Ciclo For 3
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3
Período2013-2013
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Valentina Hernández
ProfesorHerbert Spencer

void setup () {
  size (500, 500);
  noFill ();
  background (#38DE0B);
}
  void draw () {
    float x, y, r, rInc;
  rInc = (mouseX/40) *.1;
  r = 0;
  float inc = TWO_PI/mouseX;

  beginShape ();
  stroke (#F58E07);
  strokeWeight (1);
  for (float t = 0; t < TWO_PI*10; t+= inc) {
    x = width/2 + cos(t) *r;
    y = height/2 + sin(t) * r;

vertex (x, y);
r+= rInc;
  }
  endShape ();
  ellipse(width/2, height/2,3,3);
  println ("vertex("+mouseX+","+mouseY+");");
  saveFrame ("Valentina_Hernández_Ciclo_For_3.jpg");
}