Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. MultiTouchPad Quark

    ... , { if(fingersDict.at(curID).isNil, { "MultiTouchPad: bug? this should never happen.".postln; }); if(fingersDict.at(curID) == -1, { touchAction.value(curID, xys); }); fingersDict.put(curID, xys); setAction.value(curID, xys); if(guiOn, { { g ...

  2. MultiTouchPad Quark

    ... , { if(fingersDict.at(curID).isNil, { "MultiTouchPad: bug? this should never happen.".postln; }); if(fingersDict.at(curID) == -1, { touchAction.value(curID, xys); }); fingersDict.put(curID, xys); setAction.value(curID, xys); if(guiOn, { { g ...

  3. XiiSoundFileView Quark

    ... ect(200, 500, 800, 238), // resizable:false).front; // }); win.drawHook = { GUI.pen.color = Color.new255(255, 100, 0); GUI.pen.width = 3; GUI.pen.translate(17,204); GUI.pen.scale(0.35,0.35); GUI.pen.moveTo(1@7); logo.do({arg point; GUI.pen. ...

  4. XiiChannelMeter Quark

    ... rTicks_(3); }); // divider UserView(view, Rect(0,0,meterWidth,180)).drawFunc_({ Pen.color = Color.white; Pen.line(((meterWidth + gapWidth) * 0.5)@0, ((meterWidth + gapWidth) * 0.5)@180); Pen.stroke; }); // outs StaticText(win, Rect(10 + ((n ...

  5. gui_example_userview_fft Quark

    //fft gui example with userview / pen graphics ( var board= CytonSerial("/dev/tty.usbserial-DM00DRM0", initAction: {|b| b.start}); //edit here to match your board //var board= CytonWifi(NetAddr("OpenBCI_WifiShieldOSC.local", 13999), initAct ...

  6. BoidsND Quark

    ... ules; // do them all with two loops // move AFTER we've calculated what will happen boidList.do{|boid| boid.moveBoid(targets, obstacles); // tell the boid to calculate and move it's position }; func.(this); // evaluate the function while pa ...

  7. SGME_TooltipHandler Quark

    ... oltip", rect, resizable: false, border: false) .alwaysOnTop_(true) .drawFunc_({ Pen.fillColor = Color.red; Pen.fillRect(rect); }); tooltipWindow.view.mouseEnterAction = { tooltipClosable = false; }; tooltipWindow.view.mouseLeaveAction = { t ...

  8. sFiles Quark

    ... But, ) ) ); sfv }.dup(numPlayers); backgroundImage= Image(500, 500).draw({|img| Pen.fillColor= Color.yellow(0.3, 0.15); 100.do{|i| Pen.fillOval(Rect(400.linrand, 400.linrand, 50, 50)); }; }); win.view.setBackgroundImage(backgroundImage, 10, ...

  9. 260-oscillators Quark

    ... .amp/2+0.5*height; o.size= o.delta.abs*40+4; }; //--render world.objects.do{|o| Pen.fillColor= Color.grey((o.delta.abs*10+0.25).min(1), 0.8); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ...

  10. Boids3D Quark

    ... ules; // do them all with two loops // move AFTER we've calculated what will happen boidList.do{|boid| boid.moveBoid(targets, obstacles); // tell the boid to calculate and move it's position }; func.(this); // evaluate the function while pa ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow