Ignacio Favilla: Poligono
De Casiopea
Título | Poligono |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 3 |
Período | 2013- |
Asignatura | Imagen Escrita, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Ignacio Favilla |
Profesor | Herbert Spencer |
int num = 12; float i = TWO_PI / num; float r = 50; float x, y; void setup() { size(500, 500); } void draw() { background (#FFCC00); num = mouseX / 10; float i = TWO_PI / num; beginShape (); fill (#33CC00); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/4; y = sin(t) * r + height/1.3; vertex (x, y); } endShape (); beginShape (); fill (#FF3300); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/1.4; y = sin(t) * r + height/5; vertex (x, y); } endShape (); beginShape (); fill (#330099); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/2; y = sin(t) * r + height/2; vertex (x, y); } endShape (); saveFrame("POLIGONO.png"); }