Cuadradomagicociclofor
De Casiopea
Título | puntitosazules123 |
---|---|
Tipo de Proyecto | Proyecto de Taller |
Palabras Clave | Tarea 3 |
Asignatura | Imagen Escrita arq 2013, |
Del Curso | Imagen Escrita 2013 - ARQ, |
Carreras | Arquitectura |
Alumno(s) | Pamela Ibáñez Rojas |
Profesor | Herbert Spencer |
float margen, xSpace, ySpace;
int xElems, yElems;
void setup() {
size(500, 500); margen = 10; xElems = 50; yElems = 50; calc(); mouseX = xElems; mouseY = yElems;
}
void draw(){
background(255); fill(#2090D3); stroke(#2090D3); for (float y = margen; y <= height-margen; y += ySpace) { for (float x = margen; x <= width-margen; x += xSpace) { ellipse(x, y, 3, 3); } }
}
void calc() {
xSpace = (width - 2 * margen) / (float)(xElems - 1); ySpace = (height - 2 * margen) / (float)(yElems - 1);
}
void keyPressed(){
if (key=='s'); {saveFrame("puntitosazules123.jpg"); }}