Saltar al contenido Saltar a la navegación

Maria Jesus Martinez: tarea 5



TítuloMaria Jesus Martinez Pizarra Tarea 5
Tipo de ProyectoProyecto de Curso
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.
Alumno(s)Maria Jesus Martinez
ProfesorHerbert Spencer


float [][] coords;
int c; int maxPuntos; 
void setup() {
  size(700, 700); c = 0; maxPuntos = 10000; coords = 
new float[maxPuntos][20]; 
strokeWeight(15); 
background(#35CDD3);}
void draw()
{ stroke(#D3357A); 
if (mousePressed)
{ coords[c][0] = mouseX; coords[c][5] = mouseY; 
println(c); c ++;} 
for (int y = 0; y < c; y= y + 1)
{ point(coords[y][1], coords[y][0]);
point(coords[y][0], coords[y][1]); }}
void connect() { stroke(#D3357A); 
for (int h = 0; h < c; h= h + 60) {
  for (int k = 0; k < h; k=k+30) {
  line(coords[k][1], coords[h][1], coords[k][1], coords[h][0]); }}}