!7 static Timer timer; p { final new CirclesAndLines cal; Circle a = cal.circle_autoVis("Hello", 0.2, 0.5); Circle b = cal.circle_autoVis("World", 0.8, 0.5); cal.arrow(a, "", b); final Canvas canvas = showCAL(cal); final CALSpringLayout layout = new(cal); addToWindow(canvas, jcenteredline(jbutton("Start/Stop", r { if (timer != null) cancelTimer(timer); else startTimer(); }))); } svoid startTimer { timer = awtCalcEvery2(canvas, 100, r { layout.step(); updateCanvas(canvas); }); }