Mei-Ling Oberli: Espiral

De Casiopea
Espiral


TítuloEspiral
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 2
Período2013-
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Mei-Ling Oberli
ProfesorHerbert Spencer
float x, y, r, e; 
void setup() {

  size(700, 700);
  strokeWeight(.25);
  stroke(255,0,0);
  background(255);
} 
void draw() {

  r=0;
  e= (mouseX/ 100) * 0.1;
  float a = (TWO_PI/ mouseX) ;
  beginShape();

  for (float t = 0; t < TWO_PI * 100; t += a) {
    x = width/2 + cos(t) * r;
    y = height/2 + sin(t) * r;

    vertex(x, y);
    r += e;
  }
  endShape();
  if(key == 's'){
    saveFrame("Mei-Ling Oberli.png");
  }
}