Francisca Romero, tarea 5, imagen escrita

De Casiopea
Francisca Romero,, tarea 5, imagen escrita



TítuloFrancisca Romero, tarea 5, imagen escrita
Palabras Clavetarea 5
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)Francisca Romero Bugueño
ProfesorHerbert Spencer
 

// Basado en ejemplo de clases 

float[][] re; 
int x=0;

void setup() {

  size (700, 700);
  re = new float [1000][4];
  background(#FF05E7);
}

void draw () {

  if (mousePressed)
  {
    re[x][0] = mouseX;
    re[x][1] = mouseY;
    re[x][3] = pmouseX;
    re[x][2] = pmouseY;
    x++;
  }
  for (int i=10; i<=x; i++)
  {
    strokeWeight(10);
    stroke(#FFE705, 1);
    line(re[i][0], re[i][1], re[i][2], re[i][3]);
  } 
  if (x==100000)
  {
    unir();
    noLoop();
  }
}

void keyPressed() {

  if (key == ' ')
  {
    unir();

  }
}

void unir() {

  for (int u=0; u<=x; u=u+5)
  {
    for (int j=0; j<u; j=j+5)
    {
      line(re[j][0], re[j][1], re[u][0], re[u][1]);
    }
  }
}