-
... mass/12); Pen.fillRect(Rect.aboutPoint(o.loc.asPoint, 0.5, 0.5)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... n.addOval(Rect.aboutPoint(ploc, o.size/5, o.size/5)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ) /* //manual control a.addForceAngular1D(30) a.addForceAngular1D(5) a.addForceAngular1D(-5) a.pendulumOffset1D a.pendulumLoc1D */
-
... ifishield). use GanglionSerial for the bluetooth dongle. NOTE: does not survive CmdPeriod . Class Methods . new open communication Arguments: netAddr a NetAddr with the ip and port of the wifi shield. by default this is NetAddr("OpenBCI_Wif ...
-
... n.addOval(Rect.aboutPoint(ploc, o.size/5, o.size/5)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ) /* //manual control - add force to random object a.choose.addForceAngular2D(30) a.choose.addForceAngular2D(5) a.choose.addForceAn ...
-
... ers //--render Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).m ...
-
... Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).m ...
-
... er objects Pen.addRect(Rect.aboutRedObject2D(o)); }); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... .5)).clip(0, 1)); Pen.strokeOval(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... = Color.grey(o.mass/4); Pen.strokeOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )