Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

  2. Simple animated 2D user interface by rukano (rukano) Code

    ... local; s.waitForBoot{ if (s.hasShmInterface) { w = Window().front; u = UserView(w, w.view.bounds); f = { |x, y| var size = 20 + (y/4); k = k.center_(Point(x, y)); k = k.size_(Size(size, size)); b.setSynchronous(x ...

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

  4. SMS Plugin

    ... req, amp; var temp; var black, white; var counter=0; //for scrolling around var userview; var drawdataready= false , drawpos=0; var i, t; //var drawupdate = drawaccum/ var bufferfetchwait = (1.0/172.0); var drawupdatex = drawaccum*xperframe ...

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

  6. Bouncy_Balls Doc

    ... var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, b, c; var physics; var handleBoundaryCollisions; usr.background= Color.white; physics= TraerParticleSystem. ...

  7. Bouncy_Balls Quark

    ... var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, b, c; var physics; var handleBoundaryCollisions; usr.background= Color.white; physics= TraerParticleSystem. ...

  8. README Quark

    ... - added RedMRCM and RedIFS * 090521 - RedWindow and RedJWindow now draws in the UserView - thanks Thor * 090514 - growth example and asPoint added to RedVector * 090510 - added RedLSystem and RedLTurtle classes. updated example 070-lsystem. ...

  9. Bang Quark

    ... clear; fillcolor = Color.yellow; fillmode = true; state = false; mouseTracker = UserView.new(win, bounds) .canFocus_(false) //.relativeOrigin_(false) .mouseDownAction_({|me, x, y, mod| if(mod == 262401, { // right mouse down // rightDownAct ...

  10. SpeedLim Doc

    ... .layout = VLayout( sl = Slider().orientation_(\horizontal).maxHeight_(30), uv = UserView().background_(Color(0.1, 0.1, 0.4)) ); sl.action = SpeedLim(0.15, { |view| j = view.value; uv.refresh; }, AppClock); uv.drawFunc = { |view| var b = vie ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow