Polígonoinmóvil

| Título | Polígonoinmóvil |
|---|---|
| Tipo de Proyecto | Proyecto de Taller |
| Palabras Clave | tarea 5 |
| Asignatura | Imagen Escrita arq 2013, |
| Del Curso | Imagen Escrita 2013 - ARQ, |
| Carreras | Arquitectura |
| Alumno(s) | Pamela Ibáñez Rojas |
| Profesor | Herbert Spencer |

int num = 20;
float i = TWO_PI / num; float r = 250; float x, y;
void setup() {
size(500, 500);
}
void draw() {
background(#41C2F0); fill(#2E91B4);
beginShape();
for (float t = 0; t < TWO_PI; t = t + i) {
x = cos(t) * r + width/2; y = sin(t) * r + height/2;
vertex(x, y); } endShape(CLOSE);
} void keyPressed(){
if (key=='s'); {saveFrame("poligonoinmovil.jpg");
}
}