Florencia Salgado Poigono Polar

De Casiopea


TítuloPolígono Polar_Florencia Salgado
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Florencia Salgado



int num = 19;
float i = TWO_PI / num; 
float r = 80;         
float x, y;            

void setup() {
  size(500, 500);
  background(255);
}

void draw() {
  background(255);
  stroke(209, 0, 0);
  fill(255, 135, 6); 

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

  beginShape();
  for (float t = 0; t < TWO_PI; t = t + i) {
    x = cos(t) * r + width/4;
    y = sin(t) * r + height/2;
    vertex(x, y);
  }
  endShape();

  beginShape();
  for (float t = 0; t < TWO_PI; t = t + i) {

    x = cos(t) * r + width/1.6;
    y = sin(t) * r + height/2;
    vertex(x, y);
  }
  endShape();
}