Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 030-wave Quark

    ... 2D[0, sys.wave.wrapAt(i)]; o.addForce(world.gravity); }; sys.update; //--render Pen.fillColor= Color.grey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. 210-patterns_and_particles Doc

    ... i| o.addForce(world.gravity); o.update; if(o.age<=0, {dead.add(o)}); //--render Pen.fillColor= Color.red; Pen.addOval(Rect.aboutRedVector2D(o.loc, o.age)); Pen.fill; }; dead.do{|o| world.remove(o)}; }; w.play; CmdPeriod.doOnce({w.close}); ) ...

  3. 210-patterns_and_particles Quark

    ... i| o.addForce(world.gravity); o.update; if(o.age<=0, {dead.add(o)}); //--render Pen.fillColor= Color.red; Pen.addOval(Rect.aboutRedVector2D(o.loc, o.age)); Pen.fill; }; dead.do{|o| world.remove(o)}; }; w.play; CmdPeriod.doOnce({w.close}); ) ...

  4. eternal_return Quark

    ... ludeSettings: false ); \ \);\ \\ \;\ \;\ \ \ \ drawLine = \ |x, inset=0| \ GUI .pen.beginPath;\ GUI .pen.moveTo(x @ (5 + inset));\ GUI .pen.lineTo(x @ (vv.bounds.height + 5 - inset));\ GUI .pen.stroke;\ \;\ w.drawHook_\\ GUI .pen.use \ \ GU ...

  5. Confetti 3 by henklass (henklass) Code

    ... axfreq)-log(minfreq))*(h+(maxWidth*v))/(maxWidth*maxHeight) Furthermore freq depends on value, which is either 0 or 1. freq=freq+(freq*value) or freq=(1+value)*freq Combining those 2: freq=(exp(log(maxfreq)-((log(maxfreq)-log(minfreq)) ...

  6. Image Quark

    ... eg2000 {^5;} // carefull: supported only in 10.4 } lockFocus, unlockFocus - All Pen commands between those two call will draw inside the Image. Caution: Normally, it will use by default the Quartz coordinate system. See examples on how to s ...

  7. 032-wave_synth2 Doc

    ... -1; synths[i].set(\amp, amp, \freq, freq, \pan, pan); }; sys.update; //--render Pen.fillColor= Color.grey(1, 0.4); sys.do{|o, i| if(i.odd, { Pen.fillOval(Rect.aboutRedObject2D(o)); }, { Pen.fillRect(Rect.aboutRedObject2D(o)); }); }; }; w.pl ...

  8. 032-wave_synth2 Quark

    ... -1; synths[i].set(\amp, amp, \freq, freq, \pan, pan); }; sys.update; //--render Pen.fillColor= Color.grey(1, 0.4); sys.do{|o, i| if(i.odd, { Pen.fillOval(Rect.aboutRedObject2D(o)); }, { Pen.fillRect(Rect.aboutRedObject2D(o)); }); }; }; w.pl ...

  9. 013-attraction4 Doc

    ... orce(o.gravityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.fillColor= Color.hsv(0.4, 1-(o.mass/12), 1, o.mass/12); Pen.fillRect(Rect.aboutPoint(o.loc.asPoint, 0.5, 0.5)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  10. 013-attraction4 Quark

    ... orce(o.gravityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.fillColor= Color.hsv(0.4, 1-(o.mass/12), 1, o.mass/12); Pen.fillRect(Rect.aboutPoint(o.loc.asPoint, 0.5, 0.5)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow