George Herrera: Figura
De Casiopea
Título | Poligono |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2013- |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | George Herrera |
Profesor | Herbert Spencer |
int num = 10; float i = TWO_PI / 5; float r = 100; float x, y; void setup() { size(500, 500); } void draw () { background (255); fill (0); num = mouseX /40; float i = TWO_PI / num; 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 (); if(key == 's'){ saveFrame("George Herrera - Poligono.png"); } }