Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... this.prGetInput(x, y); if(input == "sv") { hsv[1] = x.linlin( super.interactionRect.left + margin, super.interactionRect.left + (super.interactionRect.width * colorPickerWidth) - (margin / 2), 0, 1); hsv[2] = y.linlin( super.interactionRec ...

  2. RoundedRect Quark

    RoundedRect : Rect { var <radius; *new { arg left=0, top=0, width=0, height=0, radius; radius = radius ?? { width.min( height ) / 2; }; ^this.newCopyArgs( left, top, width, height, radius ); } *fromRect { |inRect, radius| inRect = inRect.as ...

  3. UScoreEditorGUI_TopBar Quark

    ... tEditor.addEvent }; } }); SmoothButton( header, size@size ) .states_( [[ { |bt, rect| var square; square = Rect.aboutPoint( rect.center, rect.width.min( rect.height ) / 5, rect.width.min( rect.height ) / 4 ); Pen.line( square.leftBottom, sq ...

  4. WindowViewRecall Quark

    ... { |v| var bounds; if (v.isClosed.not) { bounds = v.bounds; if (bounds.isKindOf(Rect)) { updatePosition.(bounds, addr) } } }; var windowFunc = { |w| var bounds; if (w.isClosed.not) { bounds = w.findWindow.bounds; if (bounds.isKindOf(Rect)) ...

  5. 034-wave-system Quark

    ... , wgrav, world, n= 50, sys, spook= 0; //--world w= RedWindow("wavesystem test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.2); //dim,grav,maxvel,damp //--system ...

  6. 201-discrete_world_ca_optimised Quark

    ... y= height/n, lookup; //--world w= RedWindow("discrete world - 2d ca optimised", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[n, n]); //dim,grav,maxvel,damp //--objects {|x| {|y| var loc= RedVector[x, y]; RedAgent(world, l ...

  7. ServerWindowCP Quark

    ... var spec; this.createLabel("Server").align_(\left); muteButton = Button(window, Rect(width: 80, height: 20) ); muteButton.states = [["Mute", Color.white, Color.grey], ["Unmute", Color.white, Color(0.9, 0.5, 0.3)]]; muteButton.canFocus = fal ...

  8. ActionMenu Quark

    ... ms,showArrow); } init{|parent, bounds, nm, argItems, showArrow| bounds=bounds.asRect; items=[]; name=nm; this.prAddSpacer; arrowColor = Color.grey(0.5); this.makeButton(parent, bounds, name, showArrow); // the action performed by the list t ...

  9. 036-wave-phase Quark

    ... peat 2pi/p*(width/n); }.dup(nWaves); //--world w= RedWindow("wave phase test2", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0.004]; world= RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim, ...

  10. XiiVuView Quark

    ... iew(parent, bounds); } initVuView { arg parent, argbounds; var bounds; bounds = Rect(0, 0, argbounds.width, argbounds.height); this.view_(GUI.userView.new(parent, argbounds)) .drawFunc_({ GUI.pen.color = Color.black.alpha_(0.4); GUI.pen.wid ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow