-
... {[4, 18, 20, 1, 0, 0.4]}, {setting[2]}); win = GUI.window.new("- predators -", Rect(point.x, point.y, 640, 580), resizable:false); wview = win.view; a = XixiPainter.new(win, Rect(10, 5, 620, 470)); // 640 * 480 resolution 3.do({ preyArray ...
-
... ontainerView too. ( w = SCWindow ( "test-asCode" ).front; 10.do({ SCSlider ( w, Rect .rand( 380, 380, 100, 100 ) ).value_( 1.0.rand ); }); w.view.background = Color .blue(0.8).alpha_(0.25); ) w.asCode; /* result: w = GUI.window.new("test-as ...
-
... g; canvas1.refresh; } ); }); }); /// GUI ////// // WIN win = Window("Autoloop", Rect(100,100, 930, 310), resizable: false); win.onClose_(closeAll); win.view.keyDownAction = { arg view, char, modifiers, unicode, keycode; [char, keycode].post ...
-
... w}; } makeWindow{ var y = Window.screenBounds.height - 120; window = Window("", Rect(200, y, 840, 300)); sfv = SoundFileView(window, Rect(20,20, 800, 220)).gridOn_(false).waveColors_([Color.white,Color.white]); soundButton = Button(window,R ...
-
... Nil, {[4, 18, 20, 1, 0, 0.4]}, {setting[2]}); win = GUI.window.new("- worms -", Rect(point.x, point.y, 960, 720), resizable:false); wview = win.view; a = XixiPainter.new(win, Rect(10, 5, 940, win.bounds.height-110)); // 640 * 480 resolution ...
-
... ) ]; } unmap { |value| var index; index = list.indexOf( value ); // first try direct (faster) if( index.notNil ) { ^index; } { if( value.isNumber.not ) { value = value.asSymbol; }; ^indexMap[ sortedList.indexIn( value ) ] ? defaultIndex; }; ...
-
XixiPainter { var drawer; var win, rect; var keyDownAction, keyUpAction; var backgrDrawFunc; var background, fillcolor; var running; var drawList; var playerTask, frameFunc, <>frameRate; *new { arg w, bounds; ^super.new.initXixiPainter(w, b ...
-
... rk_(network).init(parent); } init{ |parent| w = Window.new( "SWDataNetworkLog", Rect( 0, 0, 200, 92 )); w.view.decorator = FlowLayout.new( Rect(0,0,200,92), 2@2, 2@2); fn = TextField.new(w, Rect( 0, 0, 148, 20 )); open = Button.new(w, Rect( ...
-
... geMode = \lo; // \lo, \hi, \center init { arg parent, bounds; bounds = bounds.asRect; if( bounds.width > bounds.height ) { orientation = \h }; //super.init( parent, bounds ); mode = \jump; // \jump or \move value = [0.0,0.0]; // background, ...
-
... .5, tabSize = 25| var onClose, window = Window.new(name.asString + "Node Tree", Rect(128, 64, 400, 400), scroll:true ).front; window.view.hasHorizontalScroller_(false).background_(Color.grey(0.9)); onClose = this.plotTreeView2(interval, win ...