Isidora Correa Proyecto 11 IE 2012
De Casiopea
Título | Isidora Correa Proyecto 11 IE 2012 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 11 |
Período | 2012- |
Del Curso | Imagen Escrita 2012 |
Carreras | Diseño Gráfico"Diseño Gráfico" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property., Diseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property. |
Alumno(s) | Isidora Correa |
Profesor | Herbert Spencer |
TAREA 11: CONSTRUCCION DE UN ESPIRAL AUREO
void setup() { size(620, 378); smooth(); } int[] s = new int[6]; int tmp, phase; void draw() { background(164, 164, 242); s[0] = 0; s[1] = 0; s[2] = 1; phase = 0; translate(440, 270); scale(0.9, -1.0); rotate(PI); while (s[1] < 620) { if (phase % 4 == 0) strokeWeight(2); else strokeWeight(1); arc(s[2], s[2], 2*s[2], 2*s[2], PI, 3*PI/2.0); if (phase % 4 == 1) strokeWeight(2); else strokeWeight(1); arc(0, s[2], 2*s[2], 2*s[2], -PI/2.0, 0); if (phase % 4 == 2) strokeWeight(2); else strokeWeight(1); arc(0, 0, 2*s[2], 2*s[2], 0, PI/2.0); if (phase % 4 == 3) strokeWeight(2); else strokeWeight(1); arc(s[2], 0, 2*s[2], 2*s[2], PI/2.0, PI); noFill(); stroke(300, 300, 300, 300); tmp = s[2]; s[2]+= s[1]; s[0] = s[1]; s[1] = tmp; switch(phase % 4) { case 0: translate(s[1], 0); break; case 1: translate(-s[0], s[1]); break; case 2: translate(-s[2], -s[0]); break; case 3: translate(0, -s[2]); break; } phase++; } }