-
... 0, height= 480, w, wgrav, world, ypos; //--world w= RedWindow("pendulum test5", Rect(128, 64, width, height)).front; w.clearOnRefresh= false; wgrav= RedVector2D[0, 0]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.001); //dim,gra ...
-
... oreArgs| view.value_(theChanger.value); }); view = Slider ( Window ( "slider" , Rect (100, 100, 330, 38)).front, Rect (5, 5, 320, 20)); view.onClose_{controller.remove}; // run a routine to change the model's value: r{ 100.do{ model.value_( ...
-
... 0, height= 480, w, wgrav, world, ypos; //--world w= RedWindow("pendulum test5", Rect(128, 64, width, height)).front; w.clearOnRefresh= false; wgrav= RedVector2D[0, 0]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.001); //dim,gra ...
-
... window creater// main_window_creator = { makam_window = Window.new("makams", Rect(100, 100, 900, 600)); makam_window.view.decorator = FlowLayout(makam_window.view.bounds); makam_window.front; makam_option_button_creator.value(); ...
-
... .background_(colPal[1]); comp.decorator = FlowLayout(comp.bounds); Button(comp, Rect(0,0, viewWidth, 20)) .font_(font) .states_([[title, Color.black, colPal[0]]]) .action_({ event.postcs; this.openDoc; }) .resize_(2); comp.decorator.nextLin ...
-
... 300, height= 300, w, wgrav, world, n= 1; //--world w= RedWindow("vector test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.4, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,gra ...
-
... t= 300, w, wgrav, world, n= 100, ploc; //--world w= RedWindow("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0); //dim,grav,maxvel,damp //--objects { ...
-
... 300, height= 300, w, wgrav, world, n= 1; //--world w= RedWindow("vector test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.4, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,gra ...
-
... t= 300, w, wgrav, world, n= 100, ploc; //--world w= RedWindow("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0); //dim,grav,maxvel,damp //--objects { ...
-
... s(name, segments); } makeGUI { // ... var window = Window(name ? "Untitled 01", Rect(40, 40, 510, 400)); window.addFlowLayout; Button(window, Rect(0, 0, 60, 30)).states_([["post doc"]]).action_({ this.makeDoc }); Button(window, Rect(0, 0, 6 ...