Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1875) Code (155) Doc (456) Help (116) Quark (1142) Plugin (6) SCDoc ↗ Forum ↗ Google ↗
  1. 015-repulsive Quark

    ... ight= 300, w, wgrav, world, rep, obj; //--world w= RedWindow("repulsive test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 10); //dim,grav,maxvel,damp //--objects re ...

  2. weights_asBWGrid2 Quark

    ... Color.green(0.9, 0.8); // outvals as colors influx.outNames.do { |name, i| var rect = Rect(0 + (i * colstep), 0, colstep, height); Pen.addRect(rect); Pen.color = Color.grey(1 - influx.outValDict[name].biuni); Pen.fill; Pen.stringCenteredIn ...

  3. FancySlider Doc

    ... rder to enhance the existing function: ( w=Window.new.front; v = FancySlider(w, Rect (20,90,300,20)).action_{"test".postln}; v.drawFunc=v.drawFunc.addFunc({arg uview; var value_string = v.value.round(0.01).asString; var string_x; Pen.font = ...

  4. 022-viscosity Doc

    ... , world, acc, vel, loc, obj, visc, vv; //--world w= RedWindow("viscosity test", Rect(128, 64, width, height)).front; world= RedWorld(RedVector2D[width, height], 0, 30); //dim,grav,maxvel,damp //--objects acc= RedVector2D[0, 0]; vel= RedVect ...

  5. 022-viscosity Quark

    ... , world, acc, vel, loc, obj, visc, vv; //--world w= RedWindow("viscosity test", Rect(128, 64, width, height)).front; world= RedWorld(RedVector2D[width, height], 0, 30); //dim,grav,maxvel,damp //--objects acc= RedVector2D[0, 0]; vel= RedVect ...

  6. GMFaderSlider Quark

    ... thisCenterHelpers = aBoolean; { this.refresh; }.defer; } prDrawSlider { var thisRectPos, thisRectSize; if(super.orientation == \horizontal) { if(super.polarity == \uni) { thisRectSize = super.getXValueMapping( super.value, super.min, super. ...

  7. SGME_GUIPanel Quark

    ... var <compositeView; var viewSizes; var zoomWLevel = 1; var zoomHLevel = 1; var rectWindow; var rectCompositeView; var virtualWidth = 1920; // Todos las Views usan unidades de medida en relación a esta anchura. var origin; // El tamaño y po ...

  8. RoundNumberBox Quark

    ... erpreted after hitting the enter key. ( w = Window ( "RoundNumberBox Example" , Rect ( 100 , 500 , 400 , 120 )).front; b = RoundNumberBox (w, Rect ( 150 , 10 , 100 , 20 )); b.value = rrand( 1 , 15 ); b.action = { arg numb; numb.value.postln ...

  9. SCDrawServer Quark

    ... d(orch, refresh: false); //compare onDemand win = SCWindow .new( "controller" , Rect (40,40,540,540)); table = SCTabletView (win, Rect (20,20,500,500)); table.background = Color .white; win.front; table.action = { arg view, x, y; var ndur, ...

  10. Resize Doc

    ... s ( var a; a = { |i| var w, b, x,k,t,p; k=i; i = i + 1; w = Window("resize:"+i, Rect(10 + (k%3 * 220), Window.screenBounds.height- [250,460,670].at(k/3), 200, 180)); b = w.view.bounds; x = CompositeView(w, w.view.bounds.insetBy(20,20)) .bac ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow