-
... nteractionRect.width) { crossHalfSize = super.interactionRect.height * 0.33; }; Pen.width_(crossHalfSize * 0.5); super.drawFrame(super.backgroundColor); Pen.moveTo( Point( this.bounds.width / 2 - crossHalfSize, this.bounds.height / 2 - cros ...
-
//port of OpenBCI_GUI fft plot 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 ganglion and daisy //TODO (in)activate ...
-
... 230, 230-energy); } draw { if(point.y-10 < stageRect.height, { ^{ var rot; GUI.pen.use({ if ( GUI.id == \cocoa, { Pen.setShadow(1@2, 10, Color.black) }); GUI.pen.color = Color.black; GUI.pen.width = 1; GUI.pen.translate(point.x, point.y); ...
-
... , numer, y; var color = super.mainColor.deepCopy; color.alpha = thisShapeAlpha; Pen.moveTo( Point( 0, 0.linlin( thisYMin, thisYMax, super.interactionRect.bottom, super.interactionRect.top ); ) ); Pen.lineTo(positions[0]); (positions.size - ...
-
//port of OpenBCI_GUI band power 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 ganglion and daisy ( var activeChanne ...
-
... length obj.addForce(world.gravity); obj.update; world.contain(obj); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.red; Pen.fillOval(Rect.aboutRedObject2D(trg)); Pen.fil ...
-
... 00, 400,170), resizable:false).front } ); win.drawHook = { // set the Color GUI.pen.color = Color.new255(255, 100, 0); GUI.pen.width = 3; GUI.pen.translate(28,28); GUI.pen.scale(1.6, 1.6); GUI.pen.moveTo(1@7); p.do({arg point; GUI.pen.lineT ...
-
AbstractSplineGui : ObjectGui { var uv,pen,<>alpha=1.0; var <>color,<>crossHairsColor,<>textColor; var <>pointSize=3,<>font,<>showGrid=true; gui { arg parent,bounds,userView; if(userView.notNil,{ parent = userView.parent; bounds = bounds ?? ...
-
... hisSVGPath == "").not) { thisSVG.free; }; thisSVGPath = aPath; thisSVG = Image.openSVG(thisSVGPath); thisSVGSize = Point(thisSVG.width, thisSVG.height); this.resizeSVG; } resizeSVG { var buttonSize = min( super.interactionRect.width, super. ...
-
... |b| b.start}); //edit here to match your board //var board= CytonWifi(NetAddr("OpenBCI_WifiShieldOSC.local", 13999), initAction: {|b| b.start}); //var board= SyntheticData(initAction: {|b| b.start}); //synthetic test data //var board= Playb ...