Barbara Madariaga: Espiral

De Casiopea


TítuloEspiral
Palabras ClaveTarea 3
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - DIS,
CarrerasDiseño Gráfico"Diseño Gráfico" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property., Diseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property.
Alumno(s)Barbara Madariaga
ProfesorHerbert Spencer

Barbaramadadiaga-tareaciclo.jpg


void setup() {
  size(500, 500);
  fill(255, 0, 0);
}



void draw() {
  mouseX = width/2;
  mouseY = height/2;
  background(255);
  stroke(18, 255, 3);
  strokeWeight(4);

  float x, y, r, rInc;  

  r = 9;
  rInc = mouseX/4;  


  r = 3;
  rInc = 80/70;
  float inc = TWO_PI /120;

  beginShape();
  for (float t = 0; t < TWO_PI * mouseX/20; t += inc) {

    x = mouseX + cos(t) * r/6;
    y = mouseY + sin(t) * r/6;

    vertex(x, y);
    r += rInc;
  }
  endShape();
  saveFrame("barbaramadadiaga-tareaciclo.jpg");
  exit();
}