Andrea Haddad: Pizarra con objetos

| Título | Pizarra con objetos |
|---|---|
| Tipo de Proyecto | Proyecto de Curso |
| Palabras Clave | tarea 6 |
| Período | 2012- |
| Asignatura | Taller Inicial 1ª y 2ª Etapa, |
| Del Curso | Imagen Escrita 2012, |
| Carreras | Arquitectura |
| Alumno(s) | Andrea Haddad |
| Profesor | Herbert Spencer |
float[][] coords;
int maxPuntos;
int c;
void setup() {
size(700, 700);
c = 0;
maxPuntos = 1000;
coords = new float[maxPuntos][13];
strokeWeight(18);
background(600);
}
void draw() {
stroke(#AE900F);
if (mousePressed) { coords[c][0] = mouseX;
coords[c][1] = mouseY;
println(c); c ++;
if(keyPressed) { } ellipse(300,400,500,200);
} for (int a = 0; a <= c; a++) { point(coords[a][0], coords[a][1]); } }
void keyPressed() {
if (key == 'd'){ stroke(#022BFF);
rect(mouseY,mouseX,mouseY,mouseX); stroke(#022BFF);
rect(70,120,140,102); rect(75,125,145,107); }
if (key == ' '){ background(#FF249A);} if (key == 'f'){
fill (187);
ellipse (mouseY,mouseX,mouseY,mouseX);
stroke (#FCFF71); } if (key == '+'){
strokeWeight (30);}
if (key == '-'){
strokeWeight (7);}
}