Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ark. If not, see <http://www.gnu.org/licenses/>. */ /* In Haskell this would be penShapeStep = PenLineTo Double | PenCurveTo Double cPoint1 cPoint2 | ... render ::penShapeStep -> IO */ PenShapeStep { render{ this.subclassResponsibility(this ...

  2. draw crossfades Quark

    ... o = true; w.drawFunc = { var fader, crossfades, lines, focusMul = 1; c.draw(m); Pen.addArc( p * (1 @ -1), 0.3/2, 0, 2pi ).fill; if( a == \point ) { focusMul = c.focusDetector.kr( p ); }; // draw corns as blue points Pen.color = Color.blue; ...

  3. PlotPoint Quark

    ... t.min( vw.drawBounds.width ); center = vw.drawBounds.center; if( includeNeg ) { Pen.width = lineSize; lineColor.set; Pen.line( vw.drawBounds.left@center.y, vw.drawBounds.right@center.y ).stroke; Pen.line(center.x@vw.drawBounds.top, center.x ...

  4. RedLTurtle Quark

    ... tem.production, 0); }); } defaultCommands { ^( $F: {|depth, depthLength, index| Pen.line(Point(0, 0), Point(0, depthLength.neg)); Pen.stroke; Pen.translate(0, depthLength.neg); }, $G: {|depth, depthLength, index| Pen.translate(0, depthLengt ...

  5. PrePostView Quark

    ... Rect; var isVertical = swapXYFunc.notNil and: { bounds.height > bounds.width }; Pen.color_(preCol); nextRect = Rect(2,2, preAmp * maxwid, height); if (isVertical) { nextRect = swapXYFunc.(bounds, nextRect) }; Pen.addRect(nextRect); Pen.fill ...

  6. MantaGUI Quark

    ... extent = 30, strokeColor, fillColor, name = 0| var pos = rect.center.asArray; //Pen.addRect(rect); //Pen.stroke; Pen.use{ Pen.width = strokeWidth; Pen.translate(*(pos.asArray)); Pen.strokeColor = strokeColor ?? {Color.gray(0.5)}; Pen.fillCo ...

  7. Animation of Simple Harmonic Motion by elifieldsteel (eli.fieldsteel) Code

    ... var center, newcenter, x, y; //dividing line between circles/waveform Pen.width_(2); Pen.strokeColor_(Color.gray(0.5)); Pen.line(600@0, 600@520); Pen.stroke; //draw circles Pen.capStyle_(1); Pen.width_(2); i ...

  8. weights_asBWGrid2 Quark

    ... lor.rand), ) ); ( ~utext .drawFunc = { |uv| var bounds = uv.bounds.moveTo(0,0); Pen.stringCenteredIn("2d Slider \ninterface here?", bounds); }; /// right bottom: outvals ~uouts.drawFunc = { |uv| var bounds = uv.bounds.moveTo(0,0); var width ...

  9. gui_example_userview_accelerometer Quark

    //gui example with userview / pen graphics //only plotting accelerometer data ( var board= CytonSerial("/dev/tty.usbserial-DM00DRM0", initAction: {|b| b.start}); //edit here to match your board //var board= CytonWifi(NetAddr("OpenBCI_WifiSh ...

  10. draw wavefields Quark

    ... alse; c.draw(m); corners = c.uniqueCorners; focusMul = c.focusDetector.kr( p ); Pen.use({ Pen.scale( 1, -1 ); Pen.addArc( p, 0.164, 0, 2pi ).fill; Pen.width = 0.075; Pen.line( 0.2@0, -0.2@0 ).line( 0 @ 0.2, 0 @ -0.2 ).stroke; Pen.color = Co ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow