Poligono: Valentina Lucero

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)Valentina Lucero
ProfesorHerbert Spencer

int num = 20;

float i = TWO_PI / num; 
float r = 40;          
float x, y;             
void setup() {
 size(500, 500);
}
void draw() {
background (#000000);


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


 beginShape ();
 fill (#FF00FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/6;
   y = sin(t) * r + height/2;
   vertex (x, y);
 }
 endShape ();
 
 beginShape ();
 
fill (#CC33FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/2;
   y = sin(t) * r + height/1.3;
   vertex (x, y);
 }
 endShape ();
   
  beginShape ();
 fill (#66FF00);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/6;
   y = sin(t) * r + height/5;
   vertex (x, y);
 }
 endShape ();
 
  beginShape ();
 fill (#FF9900);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/6;
   y = sin(t) * r + height/1.3;
   vertex (x, y);
 }
 endShape ();
 
 beginShape ();
 fill (#9966FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.2;
   y = sin(t) * r + height/5;
   vertex (x, y);
 }
 endShape ();
  beginShape ();
 fill (#FF00FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/6;
   y = sin(t) * r + height/2;
   vertex (x, y);
 }
 endShape (); 
 beginShape ();
 fill (#FF00FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/6;
   y = sin(t) * r + height/2;
   vertex (x, y);
 }
 endShape ();
 beginShape ();
 fill (#FFFF00);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/2;
   y = sin(t) * r + height/5;
   vertex (x, y);
 }
 endShape ();
   beginShape ();
   
   fill (#33FFFF); 
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.2;
   y = sin(t) * r + height/2;
   vertex (x, y);
 }
 endShape ();
  beginShape ();
 fill (#66FF00);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.5;
   y = sin(t) * r + height/5;
   vertex (x, y);
 }
 endShape ();
 
  beginShape ();
 fill (#FF3366);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.2;
   y = sin(t) * r + height/1.3;
   vertex (x, y);
 }
 endShape ();
  beginShape ();
 fill (#FF9900);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/1.5;
   y = sin(t) * r + height/1.3;
   vertex (x, y);
 }
 endShape ();
 
 beginShape ();
 fill (#9966FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/3;
   y = sin(t) * r + height/5;
   vertex (x, y);
 }
 endShape ();
  beginShape ();
 fill (#FF00FF);
 for (float t = 0; t < TWO_PI; t = t + i) {
   x = cos(t) * r + width/3;
   y = sin(t) * r + height/1.3;
   vertex (x, y);
 }
 endShape ();
 beginShape ();
 fill (#FF3366);
 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 ();

saveFrame("Poligono n1.png"); }