Wiki con Hielo

De Casiopea

<processingjs> Node[] n; int totalNodes = 300; float maxDist = 420; float minDist = 5; float margen = 20; int count;

void setup() {

 size(500, 500);
 init();

}

void init() {

 n = new Node[totalNodes];
 n[0] = new Node(width/2, height/2, 100);
 count = 1;

}

void draw() {

 background(255);
 stroke(0);
 float newX = random(margen, width-margen);
 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>





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