-
... ate.com/physics/ ( var width= 400, height= 400; var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, b, c; var physics; var handleBoundaryCollisions; usr.backgr ...
-
... ght of hand in the implementation, using the port keys as getters and setters directly. The following two lines of code are thus equivalent: myQCView.setInputValue(\valueIn, 1); myQCView.valueIn = 1; ⧉ ✔ Class Methods Inherited class method ...
-
... Font("Monaco", 24); ( var updateFont, w, m, y, t, a, b, c; w = Window("Fonts", Rect(150, Window.screenBounds.height - 500, 400, 400)).front; w.view.decorator = FlowLayout(w.view.bounds); StaticText.new(w, Rect(5, 0, 30, 20)).string_("Font" ...
-
... 5, 0.5); var numberUp, numberDown, slider, plot, fifo; numberUp= NumberBox(win, Rect(10, 10, 90, 20)); numberUp.value= flt.factorUp; numberUp.decimals= 3; numberUp.action= {|view| view.value= view.value.max(0); flt.factorUp= view.value; }; ...
-
... ontainers The most fundamental element of the GUI is the Window . It occupies a rectangular space on screen within which other GUI elements are displayed. It usually has a bar that displays the window's title and allows for moving it, resiz ...
-
... iew, either in a Window or not. Arguments: parent A Window (optional). bounds A Rect where the spectrogram appears in the parent (optional). bufSize frames in FFT window. default: 1024. Use power-of-2 sizes, such as 512 or 2048. color The f ...
-
... ll, leftSpr, rightSpr, list= List.new; //--world w= RedWindow("spring coupled", Rect(128, 64, width, height)).front; world= RedWorld1(RedVector2D[width, height]); //dim,grav,maxvel,damp //--objects ~leftObj= RedObject(world, RedVector2D[wid ...
-
... 0.1, 0.1, 0.5); var number, number2, slider, plot, fifo; number= NumberBox(win, Rect(10, 10, 90, 20)); number.value= flt.factor; number.decimals= 3; number.action= {|view| view.value= view.value.max(0); flt.factor= view.value; }; StaticText ...
-
... xygen49").gui.showLabels; ( // simple blockish layout w = Window("PianoLayout", Rect(0, 200, 400, 200)).front; Piano.layout(48, 72).do { |ev| var color = Color.perform(ev.color); UserView(w, Rect(ev.x * 20 + 4, ev.y * 50 + 4, 18, 50)) .back ...
-
... .com/physics/ ( var width= 400, height= 400; var win= Window("Simple Pendulum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var physics, p, anchor, s; usr.background= Color.white; physics= Traer ...