Macarena Olmedo. poligono
De Casiopea
Título | Macarena olmedo Poligono |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2013-2013 |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Macarena Olmedo |
Profesor | Herbert Spencer |
int num = 19; float i = TWO_PI / num; float r = 80; float x, y;
void setup() {
size(600, 500);
}
void draw() {
background(135); stroke(0); fill(55, 10,0);
num = mouseX / 20; float i = TWO_PI / num;
beginShape(); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/5; y = sin(t) * r + height/5; vertex(x, y); x = cos(t) * r + width/4; y = sin(t) * r + height/2; vertex(x, y); } endShape(); if (key == 's'){ saveFrame("macarena-poligono.jpg"); }
}