Megan Almarza: Espiral
De Casiopea
Título | Espiral Logaritmica |
---|---|
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) | Megan Almarza |
Profesor | Herbert Spencer |
float x, y, r, e; void setup() { size(700, 700); background(255); strokeWeight(10); } void draw() { stroke(#A04F8D); r=0; e= (mouseX/ 50); float a = (TWO_PI/ mouseY) ; beginShape(); for (float t = 0; t < TWO_PI * 7.5; t += a) { x = width/2 + cos(t) * r; y = height/2 + sin(t) * r; vertex(x, y); r += e; } endShape(); if (key == 's') { saveFrame("Espiral-####.png"); } }