-
//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), initAction: ...
-
... eWindow(this)}, false); this.background= Color.black; mouse= RedVector2D[0, 0]; userView= UserView(this, Rect(widthSlider/2, 0, argBounds.width-(widthSlider/2), argBounds.height)) .mouseDownAction_{|view, x, y| mouse= RedVector2D[x, y]} .mo ...
-
... nd_(Color(1,1,1)) .background_(colorSet1[0]) ; //*** Draw index lines *** drw = UserView(win, sfw.bounds).resize_(5) .background_(Color(0,0,0,0)) .drawFunc_({|uview| //** Reset Buttons **// onsetButton.value_(0); breakButton.value_(0); peak ...
-
... tzone = CompositeView(win, Rect(160, 0, 750, 25)).background_(Color.rand); // a userview to draw the numeric values on var uv = UserView(win, vbounds.top_(vbounds.height).height_(30)) .background_(Color.grey); try { win.alpha_(NTMI.g.alpha) ...
-
... ring_("mouse is down: "++b) } }.enOut; }).start; ) //track mouse position ( w = UserView().minWidth_(500).minHeight_(500).acceptsMouseOver_(true).front; ENdef(\x, { var pos = w.enMousePos; var cx = w.bounds.width/2; var cy = w.bounds.height ...
-
... arg parent,bounds; if(parent.notNil,{ parent = parent.asFlowView(bounds); uv = UserView(parent,bounds ?? {parent.indentedRemaining}); },{ bounds = bounds ?? {Rect(0,0,800,800)}; parent = Window(def.name,bounds,scroll: true).front; uv = Use ...
-
... d((name++"Top").asSymbol -> Point.new(0,0)); satieObjects[\objects].add(name -> UserView.new(window,Rect(posx-(diameter/2), posy-(diameter/2),diameter,diameter))); satieObjects[\objects][name].drawFunc = { Pen.fillColor = colorObject; Pen.f ...
-
... implemented }; } plot { |notesOnly = false| var window, events; window = ScaledUserViewWindow( pathName.basename ); // this.adjustEndOfTrack; events = this.analyzeUsedEvents; if( notesOnly ) { events = events.select({ |event| event[2] == ' ...
-
... { |parent, bounds| ^super.new.init(parent, bounds) } init { |parent, bounds| // UserView can focus; CompositeView can't bounds = bounds.asRect; innerBounds = bounds.insetBy(1, 1).moveTo(1, 1); background = Color.white; this.view = UserView( ...
-
... { |parent, bounds| ^super.new.init(parent, bounds) } init { |parent, bounds| // UserView can focus; CompositeView can't bounds = bounds.asRect; innerBounds = bounds.insetBy(1, 1).moveTo(1, 1); background = Color.white; this.view = UserView( ...