Diferencia entre revisiones de «Valentina Hernández: Ciclo For 1»

De Casiopea
Sin resumen de edición
Sin resumen de edición
 
Línea 10: Línea 10:
|Profesor=Herbert Spencer,
|Profesor=Herbert Spencer,
|Alumnos=Valentina Hernández,
|Alumnos=Valentina Hernández,
|Imagen=Valentina Hern�ndez Ciclo For Parte 1.jpg
}}
}}
[[Image:Valentina_Hernández_Ciclo_For_Parte_1.jpg|frame|center]]
<pre>
<pre>
<noWiki>
<noWiki>

Revisión actual - 20:13 29 abr 2013


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");
}