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) | Emilio Perez |
Profesor | Herbert Spencer |
float x, y, r, e; void setup() { size(500, 500); background(155); strokeWeight(10); stroke(200); } void draw() { r=0; e= (mouseX/ 300) * 0.2; float a = (TWO_PI/ mouseX) ; beginShape(); for (float t = 0; t < TWO_PI * 200; t += a) { y = width/2 + cos(t) * r; x = height/2 + sin(t) * r; vertex(y, x); r += e; } endShape(); if (key == 's'){ saveFrame("Emilio Perez- Espiral.png"); } }