Diferencia entre revisiones de «Ignacio Favilla: Espiral»

De Casiopea
Sin resumen de edición
Sin resumen de edición
 
Línea 9: Línea 9:
|Profesor=Herbert Spencer,
|Profesor=Herbert Spencer,
|Alumnos=Ignacio Favilla,
|Alumnos=Ignacio Favilla,
|Imagen=ESPIRAL.png
}}
}}
float x, y, r, h;  
float x, y, r, h;  

Revisión actual - 15:16 24 may 2013

Espiral


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

float x, y, r, h;

  void setup(){
 noFill ();
 stroke (150,430,500); 
 size(600, 600);
 
}
 void draw(){
 background (#FFCC00);
 r=0;
 h= (100/ 64) * -0.1;
  float a = (TWO_PI/ mouseX) ;
  beginShape();
  for (float t = 30; t < TWO_PI * 80; t += a) {
  x = width/4 + cos(t) * r;
  y = height/1.5 + sin(t) * r;
  vertex(x, y);
  r += h;
 }
  endShape();

saveFrame("ESPIRAL.png");

  }