-
... = lb + neg((signy*y))} //because in Painter view if y = y-1 the position go up (Rect upper border distance) {lb = 1} } {lb = (scapeHeight - 1)}; this.update(this); } goback { var x = cos(lorient); var y = sin(lorient); var xnosign = abs(x); ...
-
+ Rect { corners { var l, r, t, b; l = this.left; r = this.right; t = this.top; b = this.bottom; ^[ l@t, r@t, r@b, l@b ]; } rotatedCorners { |amt = 0, x, y| var center, pts; center = this.center; x = x ? center.x; y = y ? center.y; center = ...
-
... RedFingerprint(Env.perc(0.3, 0.3, 1, -2).asSignal); win= Window("fingerprint", Rect(100, 100, width, height), false).front; usr= UserView(win, Rect(0, 0, width, height)); usr.drawFunc= { Pen.translate(width*0.5, height*0.5); Pen.strokeColo ...
-
... (0.0,1.0, 60.collect{ [ RealVector .rand(2),rrand(0.4,1.0),0.05] }) a.plotUni( Rect (0,0,1,1),400,0.2); a.getRange; a.value( RealVector [0.2,0.7]); BlobField (0.0,1.0,[[ RealVector [0.5,0.5],1,0.05]]).plotUni( Rect (0,0,1,1),400,0.2); Blob ...
-
... this when using WsLayout. Arguments: wsWindow An instance of WsWindow bounds A Rect specifying the size of the widget. NOTE: Currently a relative measurement is used: 1 for full window width, 1 for full window height, e.g. Rect(0, 0, 1, 1) ...
-
... [] ) }.dup(board.numChannels); //--window var win= Window("band power widget", Rect(10, 100, 512, 320)); var ts= "EEG Power Bands"; var as= "Power - (uV)^2 / Hz"; win.view.minSize= Size(436, 145); win.background= Color.white; win.drawFunc= ...
-
... values. Click '||' to stop playing, if you wish. Click '^', enter a writable directory and hit Return. (current slider recordings are saved to that directory) Restart your computer ;) (just for illustration) Relaunch below code, click '... ...
-
... mes.count({|item| item.asString.find("outBus", true, 0) == 0; }).size; bounds = Rect(400, 400, 350, 50 + (numControls * 30)); ^super.new(argParentApp, name, argIdent, argUniqueID, argExtraArgs, bounds, numIns, numOuts, argCanvasXY).init; } ...
-
... bel("Metronome Metro Vol. Out Bpm").align_(\left); metroButton = Button(window, Rect(width: 80, height: 20) ); metroButton.states = [ ["Metro", Color.white, Color.grey], ["Metro", Color.white, Color(0.9, 0.5, 0.3)]]; metroButton.canFocus = ...
-
/* ( w = Window.new("test", Rect(0,0, 800, 600)).front; w.view.decorator = FlowLayout.new(w.view.bounds); b = { var spec = Spec.specs.select({|x| x.isKindOf(ControlSpec)}).keys.choose; MinBox.new(w, (0@0)@([rrand(20,100)@rrand(20,100)].choo ...