Javiera Johnson: Espiral

De Casiopea
Javiera Johnson: Espiral


TítuloJaviera Johnson: Espiral
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 2
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Javiera Johnson
ProfesorHerbert Spencer
Javiera Johnson Espiral.jpg

void setup () {
  size (500, 500);//tamaño película
  noFill (); //sin relleno
  background (255); //fondo blanco
}
  void draw () {
    float x, y, r, rInc;
  rInc = (mouseX/100) *0.1;
  r = 0;
  float inc = TWO_PI/mouseX;

  beginShape ();
  stroke (#FC0800);
  strokeWeight (1);
  for (float t = 0; t < TWO_PI*100; t+= inc) {
    x = width/2 + cos(t) *r;
    y = height/2 + sin(t) * r;
vertex (x, y);
r+= rInc;
  }
  endShape ();

  saveFrame ("Javiera_Johnson_Espiral.jpg");
}