Matías Vega: Polígono
De Casiopea
Título | Polígonos |
---|---|
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) | Matías Vega |
Profesor | Herbert Spencer |
int num = 10; float i = TWO_PI / 10; float r = 40; float x, y; void setup() { size(500, 500); } void draw () { strokeWeight(2); // grosor trazo background (500); fill (#40D8D7); num = mouseX /40; float i = TWO_PI / num; beginShape(); for (float t = 0; t < TWO_PI; t =t + i) { x = cos(t) * r + width/1.3; y = sin(t) * r + height/4; vertex (x, y); } endShape (); beginShape (); fill (#EA201A); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/4; y = sin(t) * r + height/4; vertex (x, y); } endShape (); beginShape (); fill (100); for (float t = 0; t < TWO_PI; t = t + i) { x = cos(t) * r + width/1.3; y = sin(t) * r + height/1.3; vertex (x, y); } endShape (); beginShape (); fill (#F2EC33); 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 (0); 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 (); if(key == 's'){ saveFrame("Matías Vega - Polígono.jpg"); } }