Diferencia entre revisiones de «Wiki con Hielo»

De Casiopea
Sin resumen de edición
Sin resumen de edición
Línea 1: Línea 1:
<processingjs>
<processingjs>
Node[] n;
int totalNodes = 300;
float maxDist = 420;
float minDist = 5;
float margen = 20;
int count;


void setup() {
void setup() {
   size(500, 500);
   size(500, 500);
  init();
}
void init() {
  n = new Node[totalNodes];
  n[0] = new Node(width/2, height/2, 100);
  count = 1;
}
}


Línea 21: Línea 8:
   background(255);
   background(255);
   stroke(0);
   stroke(0);
   float newX = random(margen, width-margen);
   line(random(width),0, random(width),height);
  float newY = random(margen, height-margen);
  float nSize = random(3, 16);
 
  float closest = maxDist;
  float farthest = minDist;
 
  for (int i = 0; i < count; i++) {
    float d = dist(n[i].x, n[i].y, newX, newY) - (n[i].size/2 + nSize/2);
 
    if (d < closest) {
      closest = d;
    }
    if (d > farthest) {
      farthest = d;
    }
  }
 
  if ( closest > minDist && farthest < maxDist) {
    n[count] = new Node(newX, newY, nSize);
    count++;
    if (count >= totalNodes) {
      init();
    }
  }
 
 
  for (int i = 0; i < count; i++) {
    for (int j = 0; j < i; j++) {
 
      float d = dist(n[i].x, n[i].y, n[j].x, n[j].y);
      if (d < maxDist / 3.5) {
        strokeWeight(1);
        stroke(#ED0E2C, 90);
        line(n[i].x, n[i].y, n[j].x, n[j].y);
      }
    }
  }
  for (int i = 0; i < count; i++) {
    n[i].draw();
  }
}
 
class Node {
  float x, y;
  boolean exist;
  float size;
 
  Node(float _x, float _y, float s) {
    x = _x;
    y = _y;
    size = s;
  }
 
  void draw() {
    strokeWeight(2);
    stroke(0);
    ellipse(x, y, size, size);
  }
}
}
</processingjs>
</processingjs>

Revisión del 22:28 8 oct 2015

<processingjs>

void setup() {

 size(500, 500);

}

void draw() {

 background(255);
 stroke(0);
 line(random(width),0, random(width),height);

} </processingjs>





NombreWiki Workshop: Wiki con Hielo
Fecha de Inicio2015/10/15
OrganizadoresHerbert Spencer
ParticipantesFelipe Igualt
Lugarlugar por definir de acuerdo al número de participantes inscritos
Tipo de EventoTaller
Fuente de FinanciamientoPUCV Interno Escuela


Registro
Debes ingresar en la Wiki y modificar el formulario, agregándote como participante en el evento

Temas

  • Filosofía de la Wiki
  • Espacio de Nombres
  • Objetos semánticos
    • Lógica de objetos en Casiopea (Personas, Obras, Proyectos, Travesías, Asignaturas, Cursos, Actos, Eventos...)
  • Definición de Objetos (o clases de objetos)
    • Atributos
    • Formularios
    • Plantillas
  • Preguntas semánticas

Temas propuestos

por favor indicar aquí los temas de interés por tratar

Taller

  • Cómo construir mi página y mi portafolio
  • Cómo colaborar con el registro de travesías
  • Preguntas y respuestas