Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... : false, // functions that specify default dimensions of various views numericalRect: { Rect(0,0, ~labelW, ~h) }, smallNumericalRect: { Rect(0,0, ~labelW/2, ~h) }, sliderRect: { Rect(0,0, ~w, ~h) }, vsliderRect: { Rect(0,0, ~vw, ~vh) }, vns ...

  2. extPen-transformToRect Quark

    + Pen { *transformToRect {|rect, fromRect, keepRatio = false, scale = 1, move = 0.5| var scaleAmt; rect = rect ?? {Rect(0,0,400,400)}; fromRect = fromRect ? rect; rect = fromRect.scaleCenteredIn( rect, keepRatio, scale, move ); scaleAmt = ( ...

  3. GMUserView Quark

    ... ckground { |aColor| if(thisDisplayBackground) { Pen.fillColor_(aColor); Pen.fillRect( Rect( 0, 0, this.bounds.width, this.bounds.height ) ); }; } drawBorder { var borderSize, borderSize2, borderSize3; if(thisDisplayBorder) { borderSize3 = t ...

  4. extGradient-fill Quark

    ... { ^this; } { ^this.copy.alpha_(alpha * this.alpha); }; } } + Gradient { fill { |rect| if( direction == \h ) { ^Pen.fillAxialGradient( rect.left@rect.center.y, rect.right@rect.center.y, color1, color2 ); } { ^Pen.fillAxialGradient( rect.cent ...

  5. DrawIcon Quark

    ... ank of iconographic Pen-functions DrawIcon { classvar <drawFuncs; *new { |name, rect ... more| rect = (rect ? (32@32)).asRect; ^drawFuncs[ name ].value( rect, *more ); // returns pen function } *symbolArgs { |name, rect| var more; more = na ...

  6. windowbounds1024 Quark

    ... d 1024x768 layout if(Window.screenBounds.height == 600) { ~controlpanelBounds = Rect(428, 11, 762, 570); ~useShortBrowser = true; ~serverGui = false; } { ~controlpanelBounds = Rect(428, 11, 762, 713); }; ~mixerBounds = Rect(-7, -26, 435, 26 ...

  7. windowbounds1024 Quark

    ... d 1024x768 layout if(Window.screenBounds.height == 600) { ~controlpanelBounds = Rect(428, 11, 762, 570); ~useShortBrowser = true; ~serverGui = false; } { ~controlpanelBounds = Rect(428, 11, 762, 713); }; ~mixerBounds = Rect(-7, -26, 435, 26 ...

  8. contrainPoint Quark

    + Point{ constrain{ |rect| if ( rect.contains( this ).not, { x = x.clip( rect.left, rect.left + rect.width ); y = y.clip( rect.top, rect.left + rect.height ); }); } constrainCopy{ |rect| var point = this.copy; if ( rect.contains( this ).not ...

  9. extSCImage-drawBackground Quark

    // backgroundImage_ + SCImage { drawBackground { |rect, tileMode=1, alpha=1.0, fromRect, operation = 'sourceOver'| var toRect; rect = rect ?? { Rect(0,0,400,400) }; switch ( tileMode, 1, { this.drawAtPoint( rect.leftTop, fromRect, operation ...

  10. extPen-roundedRect Quark

    // wslib 2006 // 1st step to SwingOsc compat :: 03/2008 // - no rounded rects yet: all + Pen { *roundedRect { |rect, radius| // radius can be array for 4 corners var points, lastPoint; radius = radius ?? { rect.width.min( rect.height ) / 2; ...

1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow