Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... dForce(world.gravity); o.addForce(wind); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey(o.mass/4); Pen.strokeRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. 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}); )

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

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

  7. 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}); )

  8. sSentograph Quark

    ... ds.width; var uh= usr.bounds.height; var cur= xCurvSpec.map(xCurvSlider.value); Pen.strokeColor= palette.buttonText; a= (0..99)/99; if(cur!=0, { ~func= {|t, a= 15| atan((t-0.5)*a)/(2*atan(0.5*a))+0.5}; }, { ~func= {|t, a= 15| t}; }); a.do{| ...

  9. SmoothButton Quark

    SmoothButton part of wslib a Pen -based replacement for SCButton , with extra styling options. SmoothButton works the same way as SCButton. But, as the name states, it is smooth. SmoothButton is a subclass of RoundButton and shares all of i ...

  10. UChainGUI Quark

    ... ; udefController.remove; if( chain.isKindOf( MassEditUChain ) ) { chain.removeDependantFromChains( massEditController ); }; this.removeFromAll; if( composite == vw && { current == this } ) { current = nil } }; // startbutton views[ \startBu ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow