Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (642) Code (56) Doc (227) Help (20) Quark (339) SCDoc ↗ Forum ↗ Google ↗
  1. 013-attraction4 Doc

    ... mass/12); Pen.fillRect(Rect.aboutPoint(o.loc.asPoint, 0.5, 0.5)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. 044-pendulum-1d Doc

    ... 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 */

  3. GanglionWifi Doc

    ... 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 ...

  4. 041-pendulum2 Doc

    ... 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 ...

  5. 130-obstacle_rock Doc

    ... ers //--render Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )

  6. red00 Doc

    ... 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 ...

  7. red01 Doc

    ... 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 ...

  8. 017-repulsive3 Doc

    ... er objects Pen.addRect(Rect.aboutRedObject2D(o)); }); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )

  9. 054-boids_3d Doc

    ... .5)).clip(0, 1)); Pen.strokeOval(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  10. 120-collision_objects Doc

    ... = Color.grey(o.mass/4); Pen.strokeOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow