-
... foreColor = Color.new255(103, 148, 103); outbus = 0; win = GUI.window.new(name, Rect(point.x, point.y, 220, 195), resizable: false); GUI.staticText.new(win, Rect(10, 0, 40, 12)) .font_(GUI.font.new("Helvetica", 9)) .string_("ram use:"); ram ...
-
... idth*0.4}; if (y == nil){y = GUI.window.screenBounds.height*0.45}; mainBounds = Rect(x, y, w, h); entManager = gameloop.entManager; repManager = gameloop.repManager; visualiser = GameLoopVisualiser(entManager,repManager); instance = this; C ...
-
... argSpecX ? [0,1].asSpec; specY = argSpecY ? specX.copy; possibleMethods = [\fillRect, \fillOval, \strokeOval, \strokeRect]; this.symbolSize = 1; symbolColor = symbolColor ? Color.black; background = Color.white; highlightColor = Color.red; ...
-
... .front }); if(w.isNil,{ w = window = GUI.window.new(name.asString ++ " server", Rect(10, named.values.indexOf(this) * 120 + 10, 320, 92)); w.view.decorator = FlowLayout(w.view.bounds); }); if(isLocal,{ if( useRoundButton ) { booter = RoundB ...
-
+ Rect { *multiNew { |...args| args = args ? [0,0,0,0]; args = args.flop; ^Array.fill(args.size, { |i| Rect(*args[i]) } ); } }
-
... pdateContainers; this.refresh; } calculateCaseSize { caseSize = this.interactionRect.bounds.size.asPoint / thisGridSize; } calculateNearestPoint { |mousePos| nearestPoint = Point( mousePos.x.linlin( this.interactionRect.left, this.interacti ...
-
+ Window { *centerRect {|argWidth = 500, argHeight = 500| ^Rect ( (Window.screenBounds.width / 2) - (argWidth / 2), (Window.screenBounds.height / 2) - (argHeight / 2), argWidth, argHeight ); } }
-
... Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@height. ( w = Window ( "2DSlider" , Rect (100,100, 140 ,140)).front; t = Slider2D (w, Rect (20, 20,80, 80)) .action_({ |sl| [ ...
-
... : 0.0 ) }.dup(board.numChannels); //--window var win= Window("fft plot widget", Rect(10, 100, 512, 338)); var fs= "Frequency (Hz)"; var as= "Amplitude (uV)"; win.view.minSize= Size(436, 145); win.background= Color.white; win.drawFunc= { var ...
-
... ight= 300, w, wgrav, world, rep, obj; //--world w= RedWindow("repulsive test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 10); //dim,grav,maxvel,damp //--objects re ...