Carla Vergara: Espiral
De Casiopea
Título | Espiral |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2013-2013 |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Carla Vergara |
Profesor | Herbert Spencer |
void setup () { size (500, 500);//tamaño película noFill (); //sin relleno background (#FF0D0D); //fondo rojo } void draw () { float x, y, r, rInc; rInc = (mouseX/50) *0.1; r = 0; float inc = TWO_PI/mouseX; beginShape (); stroke (#2FEA26); //trazo verde strokeWeight (0.5); for (float t = 0; t < TWO_PI*100; t+= inc) { x = width/2 + cos(t) *r; y = height/2 + sin(t) * r; vertex (x, y); r+= rInc; } endShape (); }