Poligono gonzalo gallo

De Casiopea
poligono


Títulopoligono
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3
Período2013-
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Gonzalo Gallo
ProfesorHerbert Spencer

int num = 20; float i = TWO_PI / num; float r = 80; float x, y; void setup() {

 size(500, 500);

} void draw() {

background (#CC0000);


 num = mouseX / 15;
 float i = TWO_PI / num;


 beginShape ();
 fill (#FFFF00);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/4.5;
   y = sin(t) * r + height/3;
   vertex (x, y);
 }
 endShape ();
 
 beginShape ();
 
fill (#0000FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/2.3;
   y = sin(t) * r + height/6;
   vertex (x, y);
 }
 endShape ();
   
  beginShape ();
 fill (#0000FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.3;
   y = sin(t) * r + height/4;
   vertex (x, y);
 }
 endShape ();
 
 

}