Mariana Valenzuela tarea 6, pizarra + objeto

De Casiopea
pizarra y objeto



Títulopizarra y objeto
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 6
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Mariana valenzuela
ProfesorHerbert Spencer


 
float[][] coords; 
int maxPuntos; int c; void setup() {

size(700, 700);

c = 0; maxPuntos = 1000; 
coords = new float[maxPuntos][4]; 
strokeWeight(8.2);
background(255);

}

void draw() {

stroke(#FA007D);
if (mousePressed) { coords[c][0] = mouseX;
coords[c][1] = mouseY; println(c);
c ++; if(keyPressed) { } ellipse(370,405,200,305);
//elipse rosado aparece al presionar el mouse
} 
for (int i = 0; i <= c; i++) { point(coords[i][0], coords[i][1]); } } 

//puntos como trazos segun la bicacion del mouse al estar presionado 
void keyPressed() {


if (key == 'd'){ stroke(#038BFF); 
rect(mouseY,mouseX,mouseY,mouseX); 
stroke(#038BFF); 
rect(70,120,140,102); 
rect(75,125,145,107); } // tecla 'd' hace aparecer rectangulos que van creandose en el lugar opuesto al mouse pero luego no se vuelven a mover 

if (key == ' '){ background(#FA007D);} // tecla space color de fondo "borra" todo y se transforma todo en fuccia
if (key == 'f'){ fill (255);
ellipse (mouseY,mouseX,mouseY,mouseX); stroke (#FCFF71); } // tecla 'f' hace aparecer elipses fuccias 
if (key == '+'){ // el grosor aumenta al presionar la tecla + 

strokeWeight (40);}
if (key == '-'){ 
strokeWeight (8.2);} // el grosor disminuye al presionar la tecla -

}