Catalina Arellano: Tarea 5, arreglo pizarra, processing.

De Casiopea


TítuloCatalina Arellano: Tarea 5, nueva pizarra, processing.
Tipo de ProyectoProyecto de Curso
Palabras ClaveTarea 5
AsignaturaTaller Inicial 1ª y 2ª Etapa,
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Catalina Arellano
ProfesorHerbert Spencer

TAREA 5:


float[][] board; int maxCant; int c;

void setup() {

size(700, 700); background(124,34, 213, 456); strokeWeight(20); stroke(45, 170); strokeJoin(ROUND); c=0; maxCant = 10000; board = new float[maxCant][10]; smooth(); }

void draw() {

if (mousePressed) {

 board[c][0]=mouseX;
 board[c][1]=mouseY;
 println(c); 
 c++;

} for (int i = 0; i <= c; i++)

 point(board[i][0], board[i][1]);

}

void keyPressed() {


if (key == 'o') {

 background(255, 46, 87);
 stroke(567, 255,12);
 strokeWeight(1);

} if (key == 'p') {

 background(34, 255, 76);
 stroke(90, 24, 128, 100);
 strokeWeight(255);

} if (key == 'k') {

 background(255);

}

}