Daniela Valenzuela: espiral movil

De Casiopea
Daniela Valenzuela: Espiral Móvil


TítuloDaniela Valenzuela: Espiral Móvil
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)Daniela Valenzuela
ProfesorHerbert Spencer

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

void setup() {

 size(700, 500);
 fill(#FF83AB);

}

void draw() {

 background(#FF83AB);
 rInc = (160 / 55) * .1;      // incremento del radio
 r = 0;
 float inc = TWO_PI / 50;  // incremento del ánculo
 beginShape();
 for (float t = 0; t < TWO_PI * mouseX/width * 44; t += inc) {
   x = width/2 + cos(t) * r;
   y = height/2 + sin(t) * r;
	
    vertex(x, y);
    r += rInc;
    stroke(#520C22);
    strokeWeight(3);
  }
  endShape();
  ellipse(width/2, height/1, 2, 2);
}