Polígono Polar Camila Zamora
De Casiopea
Título | Polígono Polar Camila Zamora |
---|---|
Palabras Clave | tarea 03 |
Período | 2013-2013 |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Camila Zamora |
Profesor | Herbert Spencer |
int num = 20; float i = TWO_PI / num; float r = 90; float x, y; void setup() { size(600, 600); background(0); } void draw() { background(115); stroke(227, 48, 102); fill(245, 240, 84); num = mouseX / 10; 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/2; vertex(x, y); } endShape(); beginShape(); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/2; y = sin(t) * r + height/3; vertex(x, y); } endShape(); beginShape(); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/3; y = sin(t) * r + height/1.2; vertex(x, y); } endShape(); }