Espiral cristianzamora
De Casiopea
Título | tarea espiral |
---|---|
Asignatura | Imagen Escrita 2013 - DIS, Taller inicial plan común diseño, |
Carreras | 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) | Cristián zamora miranda |
float x, y, r, e; void setup() {
background (255); size(500, 500);
} void draw() {
r=0; float a = (TWO_PI / mouseX); e= (mouseX/ 100) * 0.1;
beginShape();
for (float t = 1; t < TWO_PI * 10; t += a) {
x = width/3 + cos(t) * r; y = height/3 + sin(t) * r;
vertex(x, y); r += e; } endShape();
}