Kim López: Espiral

De Casiopea
Kim López: Espiral


TítuloKim López: Espiral
Tipo de ProyectoProyecto de Curso
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)Kim López
ProfesorHerbert Spencer
<nowiki>float x, y, r, e; 
void setup() {

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

  r=0; 
  float a = (TWO_PI / mouseX);
  e= (mouseX/ 100) * 0.1;
  beginShape();
  for (float t = 1; t < TWO_PI * 100; t += a) {
    x = width/2 + cos(t) * r;
    y = height/2 + sin(t) * r;
    vertex(x, y);
    r += e;
  } 
  endShape();
}

</nowiki>