Exemple #1
0
  public void bang() {
    sketch.send("reset");

    sweep.update();
    sweep.draw();

    for (SeqNode n : nodes) {
      n.update(mousecoord, sweep.getRad());
      n.draw();
    }
  }
Exemple #2
0
 public void mouseup(Atom[] args) {
   // do nothing as of yet.
   if (dragging) {
     dragging = false;
     if (activeNode.stopdrag(mousecoord)) {
       nodes.remove(activeNode);
     }
     ;
   }
 }
Exemple #3
0
  public void drag(Atom[] args) {
    // do nothing yet
    // nodes.add(new SeqNode(args[0].toFloat(), args[1].toFloat(), args[2].toFloat(), 0.05f));

    if (dragging == false) {

      for (SeqNode n : nodes) {
        if (n.dragselect(mousecoord)) {
          dragging = true;
          activeNode = n;
        }
        ;
      }
    } else {
      String mouseOption = args[3].toString();
      if (mouseOption.equals("null")) {
        activeNode.drag(mousecoord);
      } else if (mouseOption.equals("option")) {
        activeNode.resize(mousecoord);
      }
    }
  }