Gianna Barchiesi, tarea 5

De Casiopea
La versión para imprimir ya no se admite y puede contener errores de representación. Actualiza los marcadores del navegador y utiliza en su lugar la función de impresión predeterminada del navegador.


Títulotarea 5
Palabras Clavetarea 5
AsignaturaImagen Escrita 2012,
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)Gianna Barchiesi
ProfesorHerbert Spencer


algo...

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

void setup() {

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

void draw() {

  if (mousePressed) {

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

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

void connect() {

  stroke(#AC58FA, #F6CED8); 
  for (int i = 0; i <= c; i++) {

    for (int j = 0; j < i; j++) {
      line(coords[i][0], coords[i][1], coords[j][0], coords[j][1]);
    }
  }
}

void keyPressed() {

  connect();
}