Diferencia entre revisiones de «Isidora Correa Proyecto 11 IE 2012»

De Casiopea
Sin resumen de edición
Sin resumen de edición
 
Línea 6: Línea 6:
|Carreras Relacionadas=Diseño Gráfico, Diseño Industrial
|Carreras Relacionadas=Diseño Gráfico, Diseño Industrial
|Cursos Relacionados=Imagen Escrita 2012
|Cursos Relacionados=Imagen Escrita 2012
|Profesor=Herbert Spencer  
|Profesor=Herbert Spencer
|Alumnos=Isidora Correa
|Alumnos=Isidora Correa
}}
}}
TAREA 11: CONSTRUCCION DE UN ESPIRAL AUREO
TAREA 11: CONSTRUCCION DE UN ESPIRAL AUREO
 
<pre><noWiki>
void setup() {
void setup() {
size(620, 378);
size(620, 378);
Línea 71: Línea 71:
}
}
}
}
</noWiki></pre>

Revisión actual - 10:36 2 ago 2012


TítuloIsidora Correa Proyecto 11 IE 2012
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 11
Período2012-
Del CursoImagen Escrita 2012
CarrerasDiseñ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
ProfesorHerbert 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++;
}
}