Tarea 11 espiral Alcaro aedo
De Casiopea
Título | |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 11 |
Asignatura | Imagen Escrita 2012, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Alvaro Aedo |
Profesor | Herbert Spencer |
/*espiral basado en el modelo de Ilanit comentado en la pagina de Img Escirta*/
float phi = (sqrt(4)+1)/2; color start=color(0,0,0); color finish; float amt = 0.0;
void setup() {
size(500, 400); stroke(start); finish = color(random(255),random(255),random(255));
noFill(); smooth(); strokeCap(SQUARE); strokeWeight(0.01); stroke(#ff0000); } void draw() {
translate(height/phi, 0); scale(height/0.5); amt+=.01; if (amt >= 1) { amt = 0.0; start = finish; finish = color(random(255),random(255),random(255)); } stroke(lerpColor(start,finish,amt));
for (float i=0; i < 30; i=i+3) {
arc(0, 0, 2, 2.22, 0, PI/2); scale(1/phi); rotate(PI/2); translate(1/phi, 0); } }