Tomas andres ortega araya espiral mouse
De Casiopea
Título | espiral mouse |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | tarea 3 |
Período | 2013- |
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) | 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>