Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (394) Code (59) Doc (78) Help (6) Quark (250) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. Space Game by mjsyts (mjsyts) Code

    ... [x,(hudRect.top.neg+z),r]]; }).flatten(1); var starY = 0; var board = UserView(win, Rect(0, 0, win.view.bounds.width, hudRect.top)) .animate_(true) .frameRate_(15) .drawFunc_({ starY = (starY+1).wrap(0,hudRect.top); Pe ...

  2. red05 Doc

    ... var win= Window("red05", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; usr.clearOnRefresh= false; physics= TraerParticleSystem(0, 0, 0, 0.4); usr.mou ...

  3. red05 Quark

    ... var win= Window("red05", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; usr.clearOnRefresh= false; physics= TraerParticleSystem(0, 0, 0, 0.4); usr.mou ...

  4. SCMButtonAdd Quark

    ... d(w,Rect(0,0,80,80)).action_({ "release function".postln; }); */ SCMButtonAdd : UserView { var pressed=false, strokeColor, highLightColor; *new { |parent, bounds| ^super.new(parent, bounds).init(); } init { strokeColor = Color.black; highLi ...

  5. wordBins Quark

    ... == 27.asAscii}.if{win.close}}; win.view.background = Color .white; view = GUI .userView.new(win, win.view.bounds); view.drawFunc = { var numAppearance, val; strings.do{ |str, i| numAppearance = numbers[i]; val = countSpec.unmap(numAppearan ...

  6. GMGridContainer Quark

    GMGridContainer : UserView { var thisViews; var thisMargins = 4; var thisOrientation = \horizontal; *new { ^super.new.init; } init { thisViews = List(0); this.onResize_( FunctionList() .addFunc({ this.prArrangeViews; }); ); } insertView { | ...

  7. UserViewObjectsManager Quark

    ... be used to change size could do zooming as well but fonts do not scale well */ UserViewObjectsManager { var <>view,<>bounds; var <>onDoubleClick,<>onMoved,<>onDelete,<>onCopy,<>keyDownAction; var <>selectedStrokeColor; var <>objects,<>sele ...

  8. Scribble Squiggle by 56228375 (56228375) Code

    ... .seconds ; ~allPoints = [] ; ~diffPoints = [] ; w = Window.new.front; q = UserView.new(w,w.view.bounds); q.mouseDownAction_({ | view, x, y, modifiers, buttonNumber, clickCount | ~allPoints = []; }); q.mouseMoveAction_({ | v ...

  9. maingui_loadtests Quark

    w = Window("test", Window.availableBounds).front; u = UserView(w, Rect(100, 100, 450, 550)).front; q.inph.mode = \full; x.stop; x = SkipJack({ u.refresh }, 0.04); x.dump u.drawFunc = { |uv| var bounds = uv.bounds.moveTo(0,0); var center = b ...

  10. CollapseView Quark

    ... .5, >eq = false, <>storeBounds,>color, <>minHeight,>drawFunction; *viewClass {^ UserView} *new { arg parent, bounds; ^super.new.init(parent, bounds); } init { arg argParent, argBounds; var w,switch=0,parentView,triangle; minHeight=CollapseV ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow