Poligono

De Casiopea
Poligono Tomás Bustos


TítuloPoligono Tomás Bustos
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3
AsignaturaImagen Escrita
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Tomás Bustos
ProfesorHerbert Spencer
<nowiki>
int num = 12;
float i = TWO_PI / num; float r = 90; float x, y;
void setup() {
 size(500, 500);
}
 void draw() {
 background (250,120,0);
 num = mouseX / 20;  
 float i = TWO_PI / num; 
 beginShape ();
 fill (120,120,120);
 for (float t = 0.1; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/3;
   y = sin(t) * r + height/1.4;
   vertex (x, y);
  }
  endShape ();
     beginShape ();
  fill (80);
  for (float t = 0; t < TWO_PI; t = t + i) {
    x = cos(t) * r + width/1.4;
    y = sin(t) * r + height/5;
    vertex (x, y);
  }
  endShape ();
 saveFrame ("Poligono.png");
}

</nowiki> int num = 12; float i = TWO_PI / num; float r = 90; float x, y; void setup() {

size(500, 500);

}

void draw() {
background (250,120,0);
num = mouseX / 20;  
float i = TWO_PI / num; 
beginShape ();
fill (120,120,120);
for (float t = 0.1; t < TWO_PI; t = t + i) {
  x = cos(t) * r + width/3;
  y = sin(t) * r + height/1.4;
  vertex (x, y);
 }
 endShape ();
    beginShape ();
 fill (80);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.4;
   y = sin(t) * r + height/5;
   vertex (x, y);
 }
 endShape ();
saveFrame ("Poligono.png");

}