Espiral: Ignacio Oliva
De Casiopea
Título | Espiral |
---|---|
Asignatura | Imagen Escrita |
Del Curso | Imagen Escrita 2013 - ARQ |
Carreras | Arquitectura |
Alumno(s) | Ignacio Oliva |
void setup () { size (500, 500); strokeWeight(10); stroke(255,255,255); fill(189,183,107); // color cualquiera del fondo smooth(8); } float x, y, r, rInc; void draw () { background (#bdb76b); rInc = (mouseX/40)*-.1; r = 0; float inc = TWO_PI/mouseX; beginShape (); for (float t = 40; t < TWO_PI*90; t+= inc) { x = width/2 + cos(t) *r; y = height/2 + sin(t) *r; vertex (x, y); r+= rInc; } endShape (); if (key == 's') { //Apretar s para guardar una img saveFrame("Ignacio Oliva-Espiral.png"); } }