-
... .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 ...
-
+ 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 ...
-
//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 // ...
-
... 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 ...
-
... 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 ...
-
... *((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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...