Espiral: Valentina Lucero

De Casiopea
Espiral


TítuloEspiral
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 2
Período2013-
AsignaturaImagen Escrita,
Del CursoImagen Escrita 2013 - ARQ,
CarrerasArquitectura
Alumno(s)Valentina Lucero
ProfesorHerbert Spencer

Haciendo el espiral logre aprender hacer dos tipos de espirales

Espiral 1:

  float x, y, r, h; 
  void setup(){
  noFill ();
  stroke (200,330,400); 
  size(400, 400);
  background (#FFFFFF);

}

  void draw(){
  background (#000000);
  r=0;
  h= (200/ 64) * -0.1;
  float a = (TWO_PI/ mouseX) ;
  beginShape();
  for (float t = 50; t < TWO_PI * 100; t += a) {
  x = width/8 + cos(t) * r;
  y = height/2 + sin(t) * r;
  vertex(x, y);
  r += h;
}
 endShape();
 saveFrame ("Espiral 2.png");

}


Espiral 2:

float x, y, r, h; 
void setup(){
noFill ();
stroke (200,330,400); 
size(400, 400);
background (#6600CC);
}
void draw(){
r=0;
 h= (200/ 64) * -0.1;
float a = (TWO_PI/ mouseX) ;

beginShape();
  for (float t = 50; t < TWO_PI * 100; t += a) {
  x = width/8 + cos(t) * r;
  y = height/2 + sin(t) * r; 
  vertex(x, y);
  r += h;
 }
endShape();
saveFrame ("Espiral n1.png");
}