-
... der { *initClass { Class.initClassTree(GUI); } makeView { arg layout, x, y; var rect; if((layout.isNil or: { layout.isKindOf(PageLayout) }), { layout = layout.asFlowView; }); this.view = GUI.button.new(layout, Rect(0, 0, x, y ? GUI.skin.but ...
-
... o( Point(index + margin, view.bounds.height - margin) ); Pen.stroke; }); Pen.addRect( Rect( margin / 2 + (view.bounds.width - (margin * 2)) * v_slider_position + margin, margin / 2, margin, view.bounds.height - margin ) ); Pen.fillAxialGrad ...
-
... Methods *new (parent, bounds) parent - The parent view. bounds - An instance of Rect , or a Point indicating width@height. ( w = Window .new.front; a = HrButton (w, Rect (20, 60, 150, 20)).states_([["1"], ["2"]]); a.action = { a.value.postl ...
-
... instance of GameLoopVisualiser".error;} ); } init{ if (bounds.isNil, { bounds = Rect(GUI.window.screenBounds.width*0.5, GUI.window.screenBounds.height*0.5, width, height); } ); instance = this; CmdPeriod.add({this.clear}); this.initCameraRo ...
-
... instNames, btns, showInst, tuningNode, skippy, comp; w = Window("Scale Graph", Rect(100, 0, 1300, 800)).front; w.view.background_(Color.black); instNames = VGTuning.mulTrees[scale].branches.keys.asArray.sort; comp = CompositeView(w, Rect(0 ...
-
... trib is linear dt: 0.5 // every half second ); // the autorand: a.makeButton(w, Rect (0,0,20,20)); ) Accessing Instance and Class Variables ctl the control to be randomly animated tpx the taskproxy doing the random jumps spec the controlspe ...
-
... (out, Pan2.ar(z*e, pan)); }).add; s.sync; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.1); //dim,grav,maxvel,damp //worl ...
-
... see <http://www.gnu.org/licenses/>. */ /* View that shows events of a score as rectangles with rounded corners. */ UScoreView { classvar <spaceBarPlayAnyway = false; classvar <>showGrid = true; classvar <>showUChainNames = true; classvar < ...
-
... e maxTotal= 1000; //also decides when to stop //--world w= RedWindow("growth2", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0.1, 0]; //world xy gravity world= RedWorld(RedVector2D[width, height], wgrav ...
-
... ime maxTotal= 600; //also decides when to stop //--world w= RedWindow("growth", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0]; //world xy gravity world= RedWorld(RedVector2D[width, height], wgrav, ...