Valentina Hirane: Espiral

De Casiopea
Revisión del 12:40 27 sep 2018 de Hspencer (discusión | contribs.) (Texto reemplazado: «Helbert Spencer» por «Herbert Spencer»)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)


TítuloValentina Hirane: Espiral
Tipo de ProyectoProyecto de Curso
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)Valentina Hirane
ProfesorHerbert Spencer
void setup() {
  size(1010, 1010);
  stroke(#C1FFD6);
  strokeWeight(20);
}



void draw() {
  background(255);

  float x, y, z, Inc;  // 



  z = 1;
  Inc = mouseX/60; 
  float inc = TWO_PI / 80;

  float cx = width/2 + cos(millis()/1000.0)*190;
  float cy = height/2 + sin(millis()/1000.0)*190;

  pushMatrix();
  translate(cx, cy);
  {

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

      x = cos(t) * z/8;
      y = sin(t) * z/8;

      vertex(x, y);
      z += Inc;
    }
    endShape();
    // termina de dibujar el espiral po
  }  
  popMatrix();
}