Antonia Lara: Tarea 5

De Casiopea


TítuloTarea 5
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 5, imagen escrita 2012
Período2012-2012
AsignaturaTaller Inicial Común 1ª y 2ª Etapa,
Del CursoImagen Escrita 2012,
CarrerasDiseño Gráfico"Diseño Gráfico" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property., Diseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property.
Alumno(s)Antonia Lara
ProfesorHerbert Spencer

float[][] coords; int maxPuntos; int c;

void setup() {

size(700, 700); c = 0; maxPuntos = 20000; coords = new float[maxPuntos][200]; strokeWeight(10); background(#0FF4A0); }

void draw() {

if (mousePressed) {

coords[c][0] = mouseX; coords[c][2] = mouseY; println(c); c ++; } for (int i = 0; i <= c; i++) {

point(coords[i][0], coords[i][2]); } }

void connect() {

stroke(#3F09EF); for (int i = 0; i <= c; i++) {

for (int p = 0; p < i; p++) {

 line(coords[i][0], coords[i][2], coords[p][0], coords[p][2]);

} } }

void keyPressed() {

connect(); }