Daniela Valenzuela: espiral movil
De Casiopea
Título | Daniela Valenzuela: Espiral Móvil |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - DIS, |
Carreras | Diseñ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 |
Profesor | Herbert 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); }