Espiraloca
De Casiopea
Título | espiraloca |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 6 |
Asignatura | Imagen Escrita arq 2013, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Pamela Ibáñez Rojas |
Profesor | Herbert Spencer |
float x, y, r, rInc;
void setup() {
size(500, 500); noFill(); strokeWeight(10);
}
void draw() {
background(#CCFA17);
rInc = (mouseX / 30) * .1; r = 0; float inc = TWO_PI / mouseY;
beginShape(); 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(); ellipse(width/2, height/2, 10, 10);
println("vertex("+mouseX+", "+mouseY+");");
}
void keyPressed(){ if(key=='s'); {saveFrame("espiraloca.jpg"); } }