Macarena Olmedo. espiral
De Casiopea
Título | espiral |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 2 |
Período | 2013-2013 |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Macarena Olmedo |
Profesor | Herbert Spencer |
float x, y, r, e; void setup() {
size(400, 700); background(15); strokeWeight(80); stroke(0,0,5);
} void draw() {
r=0; e= (mouseX/ 10) * 0.1; float a = (TWO_PI/ mouseX) ; beginShape();
for (float t = 0; t < TWO_PI * 170; t += a) { x = width/6 + cos(t) * r; y = height/4 + sin(t) * r;
vertex(x, y); r += e; } endShape(); if (key == 's'){ saveFrame("macarena- Espiral.jpg"); }
}