-
... queID, argExtraArgs, argCanvasXY| var numIns = 0; var numOuts = 2; var bounds = Rect((Window.screenBounds.width - 350).rand, rrand(50, Window.screenBounds.height), 350, 50); var name = "HrADC"; ^super.new(argParentApp, name, argIdent, argUn ...
-
... 300, w, wgrav, world, n= 3; //--world w= RedWindow("barycenter - many objects", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 5, 0.1); //dim,grav,maxvel,damp //--object ...
-
... t_( VLayout([ Button, HLayout([ TextField(), 0.3, Button() ]), 0.2, Slider() ], Rect() // optionally give the layout size and placement on the page ), ) layout_(|lay| var remVSpace, remHSpace; var numVElem, numHElem, parentVSpace, parentHSp ...
-
... rld, acc, vel, loc, obj, fric, ff; //--world w= RedWindow("superfriction test", Rect(128, 64, width, height)).front; world= RedWorld(RedVector2D[width, height], 0, 30, 0.8); //dim,grav,maxvel,damp //--objects acc= RedVector2D[0, 0]; vel= Re ...
-
... ar width= 300, height= 300, wgrav; //--world ~win= RedWindow("livecoding test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.4, 0.98]; ~world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //-- ...
-
... t_(Font("", 12)); zone.resize_(5); // elastic h + v nameView = StaticText(zone, Rect(0,0,50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inN ...
-
... t_(Font("", 12)); zone.resize_(5); // elastic h + v nameView = StaticText(zone, Rect(0,0,50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inN ...
-
... ATH EDITOR ///////////////////////////////////////////////////////////////// WFSRectView : WFSBasicEditView { defaultObject { ^Rect.aboutPoint( 0@0, 5, 5 ) } mouseEditSelected { |newPoint, mod| var pt; // returns true if changed if( mod.isK ...
-
... ight= 300, w, world, wgrav, obj, trg, mp; //--world w= RedWindow("spring test", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0.98]; world= RedWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,grav,maxvel,d ...
-
... ray of symbols. //--simple example ( var w= Window ( "popuptreemenu - simple" , Rect (200, 400, 300, 100)).front; a= PopUpTreeMenu .new(w, Rect (50, 30, 100, 20)) .tree_( ( 'a drum' : (), 'bass' : ( 'funky' : (), 'unhip' : ( 'umpahTuba' : ( ...