Valentina Hernández: Ciclo For 1
De Casiopea
Título | Valentina Hernández: Ciclo For 1 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 2 |
Período | 2013-2013 |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Valentina Hernández |
Profesor | Herbert 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"); }