public void bang() { sketch.send("reset"); sweep.update(); sweep.draw(); for (SeqNode n : nodes) { n.update(mousecoord, sweep.getRad()); n.draw(); } }
public void mouseup(Atom[] args) { // do nothing as of yet. if (dragging) { dragging = false; if (activeNode.stopdrag(mousecoord)) { nodes.remove(activeNode); } ; } }
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); } } }