Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... .width.min( rect.height ) / 2 }; /* if( this.hasFocus ) // rounded focus rect { Pen.use({ Pen.color = focusColor ?? { Color.gray(0.2).alpha_(0.8) }; Pen.width = 2; Pen.roundedRect( rect.insetBy(-2,-2), radius + 1 ); Pen.stroke; }); }; */ if ...

  2. extPen-arrow Quark

    + Pen { // draw an arrow *arrow { arg start, end, width = 5, arrowAngle = 0.5pi; var angle, leftPoint, rightPoint; angle = (start - end).theta; leftPoint = Polar( width, angle - ( arrowAngle/2 ) ).asPoint + end; rightPoint = Polar( width, a ...

  3. openbci_gui_timeseries Quark

    //port of OpenBCI_GUI time series widget, remake in supercollider by f.olofsson 2019 //MIT License, Copyright (c) 2018 OpenBCI, https://github.com/OpenBCI/OpenBCI_GUI/blob/master/LICENSE //TODO test with wifi shield - work out samplerate // ...

  4. maingui_loadtests Quark

    ... PadsR; }; // 4 left, 4 right touchpads (padsLPos ++ padsRPos).collect { |pt, i| Pen.addArc(pt, 60, 0, 2pi); Pen.color_(g.main.padCols[i]); Pen.fill; // Pen.stringCenteredIn(i.asString, Rect.aboutPoint(pt, 60, 60), // font: Font(Font.default ...

  5. asSVGFile Quark

    ... path ) this method can create a valid SVG file from a function containing GUI .pen instructions. They are collected by ColPen (no documentation yet). The example below should demonstrate the use of this method: ( d = { GUI .pen.use({ // cr ...

  6. WFSEditViews Quark

    ... *((selected ? []).asSet.addAll( indices ) ).asArray ); } prDrawContents { |vw| Pen.use({ Pen.color = Color.gray(0.7).alpha_(0.5); Pen.width = vw.pixelScale.asArray.mean; Pen.line( -200 @ 0, 200 @ 0 ); Pen.line( 0 @ -200, 0 @ 200 ); Pen.str ...

  7. 178-springs_coupled Doc

    ... t.addFirst([~leftObj.loc[0], ~rightObj.loc[0]]); //store x positions //--render Pen.strokeColor= Color.red; Pen.line(~leftObj.loc.asPoint, leftWall.loc.asPoint); Pen.line(~rightObj.loc.asPoint, rightWall.loc.asPoint); Pen.stroke; Pen.stroke ...

  8. 178-springs_coupled Quark

    ... t.addFirst([~leftObj.loc[0], ~rightObj.loc[0]]); //store x positions //--render Pen.strokeColor= Color.red; Pen.line(~leftObj.loc.asPoint, leftWall.loc.asPoint); Pen.line(~rightObj.loc.asPoint, rightWall.loc.asPoint); Pen.stroke; Pen.stroke ...

  9. UMarkerEventView Quark

    ... ToDraw, height = 1| var radius = 5; radius = radius.min( rectToDraw.height/2 ); Pen.moveTo( (rectToDraw.left - 1) @ 0 ); Pen.lineTo( (rectToDraw.left + 1) @ 0 ); if( showLabels ) { Pen.lineTo( (rectToDraw.left + 1) @ (rectToDraw.top - radiu ...

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

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow