Daniela Delmás: Pizarra 2
De Casiopea
Título | Daniela Delmás: Tarea 5 Pizarra 2 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 5 |
Período | 2012- |
Asignatura | Imagen Escrita 2012, |
Del Curso | Imagen Escrita 2012, |
Carreras | Diseñ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) | Daniela Delmás |
Profesor | Herbert Spencer |
float[][] coords; int maxPuntos; int c;
void setup() {
size(700, 700); c = 0; maxPuntos = 10000; coords = new float[maxPuntos][100]; strokeWeight(4); background(#01DFD7); }
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(#9F81F7); for (int i = 0; i <= c; i++) {
for (int j = 0; j < i; j++) { line(coords[i][0], coords[i][1], coords[j][1], coords[j][0]); }
} }
void keyPressed() {
connect(); }