Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (394) Code (59) Doc (78) Help (6) Quark (250) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

  2. 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 ...

  3. 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 ...

  4. MxDrawer Quark

    ... 46269, 0.96588486140725, 1.0); width = min(layout.bounds.width, 200); // view = userView ?? { UserView(layout, bounds ?? { Rect(0, 0, 100, 800) }) }; ActionButton(layout, "..", { this.drillUp }); searchBox = TextField(layout, (width-28)@17) ...

  5. LSPlant Quark

    ... speed = 200; win = Window("LSPlant", winBounds).onClose_(this.stopDraw); view = UserView(win, win.view.bounds) .clearOnRefresh_(false) .background_(Color.black) .drawFunc_ ({ var dx, dy, nextP; if(willDraw, { dx = ((headingStack.last * (pi ...

  6. SCMButtonDelete Quark

    ... AUTHOR: Marinus Klaassen (2012, 2021Q3) * * TODO make een single press base SCMUserView voor delete and plus button */ SCMButtonDelete : UserView { var pressed=false, strokeColor, highLightColor; *new { |parent, bounds| ^super.new(parent, ...

  7. nUFOInfo Quark

    ... n2iRect = bounds.extent.asRect.top_(hi * 0.8).height_(hi * 0.2); var nUFOView = UserView(nUFOZone, uvRect) .background_(NTMI.g.butGrey); NTMI.g.main.nUFOView = nUFOView; nUFOView.drawFunc_({ |uv| var bounds = uv.bounds.extent.asRect; Pen.ad ...

  8. 03b_shared_coding_drawer Quark

    ... make the window slightly transparent q.draw.demoWin.alpha_(0.997); // and put a userview on it, on which we can we draw: q.draw.demoUV = UserView(q.draw.demoWin, Rect(0,0,400,400)).front; q.draw.demoUV.background = Color.black; q.draw.demoU ...

  9. WindowHandleView Quark

    WindowHandleView : UserView { var dragging, dragStart, <>win, isWin; *qtClass { ^'QcCustomPainted' } *new { arg parent, bounds; ^super.new(parent, bounds ?? {this.sizeHint} ).init; } init { this.canFocus = false; this.setDefaultBackground() ...

  10. PrePostView Quark

    ... ildren[1]; ^this.new(sliderZone, slider.bounds); } init { |parent, bounds| uv = UserView(parent, bounds); uv.background_(Color(1,1,1,0)); uv.acceptsMouse_(false); // horizontal for now: uv.drawFunc = { |uv| var bounds = uv.bounds; var maxwi ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow