Espiral: Valentina Lucero
De Casiopea
Título | Espiral |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 2 |
Período | 2013- |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Valentina Lucero |
Profesor | Herbert Spencer |
Haciendo el espiral logre aprender hacer dos tipos de espirales
Espiral 1:
float x, y, r, h; void setup(){ noFill (); stroke (200,330,400); size(400, 400); background (#FFFFFF);
}
void draw(){ background (#000000); r=0; h= (200/ 64) * -0.1; float a = (TWO_PI/ mouseX) ;
beginShape(); for (float t = 50; t < TWO_PI * 100; t += a) { x = width/8 + cos(t) * r; y = height/2 + sin(t) * r; vertex(x, y); r += h; } endShape(); saveFrame ("Espiral 2.png");
}
Espiral 2:
float x, y, r, h; void setup(){ noFill (); stroke (200,330,400); size(400, 400); background (#6600CC); } void draw(){ r=0; h= (200/ 64) * -0.1; float a = (TWO_PI/ mouseX) ; beginShape(); for (float t = 50; t < TWO_PI * 100; t += a) { x = width/8 + cos(t) * r; y = height/2 + sin(t) * r; vertex(x, y); r += h; } endShape(); saveFrame ("Espiral n1.png"); }