Tomas andres ortega araya espiral mouse

De Casiopea


Títuloespiral mouse
Tipo de ProyectoProyecto de Taller
Palabras Clavetarea 3
Período2013-
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)Tomás Andres Ortega Araya
<nowiki>
void setup() {
  size(500, 500);
  noFill();
}



void draw() {
  background(0);

  float x, y, r, rInc;  // declara múltiples variables


  strokeWeight(4);
  stroke(255);
  r = 0;
  rInc = (1)*1.1;
  float inc = TWO_PI / 64;

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

    x = height/2 + cos(t) * r/6;
    y = width/2 + sin(t) * r/6;

    vertex(x, y);
    r += rInc;
  }
  endShape();
}

</nowiki>