Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1772) Code (147) Doc (407) Help (75) Quark (1139) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. clockSync Quark

    ... se \; \;\ \ w.view.decorator = FlowLayout (w.view.bounds);\ w.view.background = Color .grey(0.8);\ \ w.view.decorator.shift(10, 0);\ \ SCButton (w, Rect (0,0, 60, 35)).states_([\ [ "ping" , Color .black, Color .clear]\ ]).action_(\ sync.pin ...

  2. extPen-roundedRect Quark

    ... ( rect ); } } *extrudedRect { |rect, radius, width = 2, angle, inverse = false, colors| //var centers; var points, cornerFunc, sidesFunc, rpt1, rpt2, width2; angle = angle ? 0.17pi; /* if( GUI.scheme.id === \swing ) // should be swing compa ...

  3. SCScope Help

    ... Float . x x_ (val) The x offset of the scope in samples. val - An Integer. waveColors waveColors_ (arrayOfColors) arrayOfColors - An Array of Color s. [ color1, color2, color2, ...], corresponding to the number of channels. Subclassing and ...

  4. 4_xoscgui Quark

    ... | // elvw.view.view.drawFunc = { |vw| // var value = elvw.element.value; // var color = Color.hsv(value, 1, 1, 1); // vw.background_(color); // }; // }; g.guiXOSC.views[27 + (0..3)].do { |elvw, i| var mappe = ItemsSpec( [Color.grey, Color.g ...

  5. DurationLine Quark

    ... { cueTrigger = cuePlayer.guiInstance.cueTrigger; } } create { arg duration = 5, color = Color.white, width = 2; if(active and:{cueTrigger.lrgCueWin.notNil}, { this.animation(duration, color, width); }); } animation { arg duration = 5, color ...

  6. PrePostView Quark

    ... >preSatCol, <>satCol; var <uv, <preAmp = 0, <postAmp = 0; *initClass { preCol = Color.yellow(1.0, 0.4); postCol = Color.green(0.7, 0.4); preSatCol = Color.red(1, 0.4); satCol = Color.red(1, 0.6); } *new { |parent, bounds| ^super.new.init(pa ...

  7. MixerUI Quark

    ... riableName)); guiElements[item.orbitIndex][\orbitLabel][\element].background = (Color.fromHexString(item.get(\color))); guiElements[item.orbitIndex][\colorPicker][\element].setColorFromHexString(item.get(\color)); }); }; ); if (eventName == ...

  8. Color-test Quark

    + Color { test { var window, tileSize = 50; window = Window( this.asString ).front; window.drawHook = { |vw| var bounds; bounds = vw.view.bounds; if( alpha < 1 ) { // transparency grid (bounds.height/tileSize).ceil.do({ |i| (bounds.width/ti ...

  9. FlowLayout Doc

    ... wLayout(w.view.bounds, 10@10, 20@5); 16.do{ Slider2D(w.view, 80@80).background_(Color.rand) }; ) ⧉ ✔ You can also write: ( w = Window.new.front; w.addFlowLayout(10@10, 20@5); // a shortcut method, see SCContainerView 16.do{ Slider2D(w.view, ...

  10. SmoothButton Quark

    ... button shape becomes a circle: c = SmoothButton ( w, 20 @ 20 ).states_([[ "x" , Color .red( 0.5 ), Color .gray( 0.6 ) ]] ); SmoothButton also supports icons from DrawIcon . If the button state name is a Symbol it is replaced by an icon with ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow