Valentina Hernández: Ciclo For 1

De Casiopea



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

int num = 20;
float i = TWO_PI / num;
float r = 50;
float x, y;
void setup () {
  size (500, 500);
  background (0);
}
void draw () {
  background (0);
  fill (#0EE0BB);
  noStroke ();
  num = mouseX / 15;
  float i = TWO_PI / num;

 
  beginShape ();
  for (float t = 0; t < TWO_PI; t = t + i) {

    x = cos(t) * r + width/6;
    y = sin(t) * r + height/2;
    vertex (x, y);
  }
  endShape ();
  beginShape ();
  for (float t = 0; t < TWO_PI; t = t + i) {

    x = cos(t) * r + width/2;
    y = sin(t) * r + height/6;
    vertex (x, y);
  }
  endShape ();

  beginShape ();
  for (float t = 0; t < TWO_PI; t = t + i) {

    x = cos(t) * r + width/2;
    y = sin(t) * r + height/1.2;
    vertex (x, y);
  }
  endShape ();

   beginShape ();
  for (float t = 0; t < TWO_PI; t = t + i) {

    x = cos(t) * r + width/2;
    y = sin(t) * r + height/2;
    vertex (x, y);
  }
  endShape ();
    beginShape ();
  for (float t = 0; t < TWO_PI; t = t + i) {

    x = cos(t) * r + width/1.2;
    y = sin(t) * r + height/2;
    vertex (x, y);
  }
  endShape ();
  saveFrame ("Valentina_Hernández_Ciclo_For_Parte_1.jpg");
}