Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (394) Code (59) Doc (78) Help (6) Quark (250) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. MIDIKeyboard Quark

    ... t(100, 250, bounds.width + 40, bounds.height+30)); win.front }); mouseTracker = UserView.new(win, bounds); // thanks ron! bounds = mouseTracker.bounds; pen = Pen; startnote = argstartnote ? 48; trackKey = 0; //pix = [0, 6, 10, 16, 20, 30, 3 ...

  2. HadronCanvas Quark

    ... (true); cWin.view.keyDownAction_({|...args| this.handleKeys(*args); }); cView = UserView(cWin, cWin.view.bounds) .background_(Color.white) .resize_(5) .drawFunc_ ({ var tempRect; var tempDist; Pen.color_(Color.black); if(cablePointsBucket.s ...

  3. openbci_gui_bandpower Quark

    ... Pen.stroke; Pen.pop; }; win.front; CmdPeriod.doOnce({win.close}); //--plot usr= UserView(win, Rect(*#[0.14, 0.19, 0.8, 0.64]*win.bounds.extent.asArray)); usr.background= Color.new255(245, 245, 245, 220); usr.clearOnRefresh= true; usr.drawFu ...

  4. ScatterView Quark

    ... moveTo((extX*0.5)@(0)); Pen.lineTo((extX*0.5)@(extY)); Pen.stroke; }; }; plot = UserView.new(parent, bounds) .drawFunc_({|w| var width, height, rect, pad = 10; if (drawAxis) { pad = 60 }; width = w.bounds.width - pad; height = w.bounds.heig ...

  5. sKeyboard Quark

    ... opUpMenu(), stretch:1], clearButton= Button().states_(#[["Clear"]]) ), usrView= UserView().minSize_(Size(winRect.width-22, winRect.height*0.75)), midiNotesText= TextView().maxHeight_(22), midiVelocitiesText= TextView().maxHeight_(22), HLayo ...

  6. Window Doc

    ... ag A Boolean. Actions and hooks . drawFunc . drawFunc = aFunction Just like the UserView , the window can be given a Function to evaluate whenever it is asked to redraw itself, so you can use the Pen class to draw on the window. See UserVie ...

  7. ActionMenu Quark

    ... s.pr_drawArrow(rr)}); }; }; showArrow.booleanValue.and(btnClass=="Button" ).if{ UserView(button,rr).drawFunc_({this.pr_drawArrow(r)}); }; button.action=this.prButtonAction; } toolTip_{arg str; button.toolTip_(str); button.refresh; } pr_draw ...

  8. ModernLife Quark

    ... entGrid.deepCopy; view.refresh; } ) }) .onClose_({ playRoutine.stop; }); view = UserView(win, win.view.bounds) .clearOnRefresh_(false) .background_(Color.black) .drawFunc_ ({ if(isPlaying, { Pen.color = Color.gray(0, alpha: fadeAmount); }, ...

  9. eternal_return Quark

    ... \\ \;\ vv = GUI .compositeView.new(w, b2).background_( Color .black);\ v = GUI .userView.new(vv, Rect (0, 0, w.bounds.width, w.bounds.height))\ \ .mouseMoveAction_(\ |v,x| mapVal.value(x) \)\ .mouseUpAction_(\ |v,x| mapVal.value(x); changed ...

  10. BoxGrid Quark

    ... r = Color.black; gridNodes = Array.newClear(columns) ! rows; mouseTracker = GUI.userView.new(win, Rect(bounds.left, bounds.top, bounds.width+1, bounds.height+1)); //bounds = mouseTracker.bounds; pen = GUI.pen; columns.do({arg c; rows.do({ar ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow