Isaías de la Sotta: elipse
De Casiopea
Título | Espiral |
---|---|
Palabras Clave | tarea 2 |
Asignatura | Imagen Escrita |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Isaías de la Sotta |
Profesor | Herbert Spencer |
float x, y, r, h;
void setup(){
float x, y, r, h;
noFill (); stroke (150,280,360); size(400, 330); background (#9000CC); } void draw(){ r=y;
h= (145/ 90) * -0.1;
float a = (TWO_PI/ mouseX) ;
beginShape();
for (float t = 50; t < TWO_PI * 75; t += a) { x = width/8 + cos(t) * r; y = height/3 + sin(t) * r; vertex(x, y); r += h; }
endShape();
}