Felipe Rojas Montenegro: Imagen Escrita: Identidad Circular
De Casiopea
Título | Identidad Circular: Espiral |
---|---|
Palabras Clave | tarea 3 |
Período | 2013-2013 |
Asignatura | Imagen Escrita 2013 - DIS, |
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) | Felipe Rojas Montenegro |
Profesor | Herbert Spencer |
float margen, x, y, r, rInc, xSpace; int xElems; void setup() { size(500,500); noFill(); margen = 5; xElems = 1; calc(); mouseX = xElems; } void draw() { background(255); noFill(); xElems = (int) mouseX; calc(); float x, y, r, rInc; rInc = mouseX/2; r = 0; float inc = TWO_PI / 10; beginShape(); for(float t = 0; t <= TWO_PI * 100 ; t += inc) { x = mouseX + sin(t) * r; y = mouseY + cos(t) * r; vertex(x,y); r += rInc; } endShape(); } void calc() { xSpace = (width - 2) / (float)(xElems); }