Alumnus Exemplar: Identidad Circular

De Casiopea


TítuloEspiral: Identidad Circular
Tipo de ProyectoProyecto de Taller
Palabras Clavetarea 3
Período2013-
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - DIS, Imagen Escrita 2013 - ARQ,
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)Alumnus Exemplar
ProfesorHerbert Spencer

/*

 identidad circular
 
 si pienso en coordenadas polares
 un ángulo t y un radio r
 
 y suponiendo que el centro del círculo está
 en el origen, entones las coordenadas x e y serían:
 
 
 x = cos(t) * r;
 y = sin(t) * r;
 
 */

size(500, 500);
noFill();


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

rInc = (200 / 64) * .1;      // incremento del radio
r = 0;
float inc = TWO_PI / 64;  // incremento del ánculo

beginShape();
for (float t = 0; t < TWO_PI * 10; t += inc) {

  x = width/2 + cos(t) * r;
  y = height/2 + sin(t) * r;

  vertex(x, y);
  r += rInc;
}
endShape();
ellipse(width/2, height/2, 3, 3);