-
... 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 ...
-
... 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 ...
-
... }; // Main Window Window.closeAll; win = Window("Formant Synthesis", Rect(150, 150, 500, 480)).front; win.onClose = {"done".postln}; // win.background = Color.gray(0.87, 0.95); win.background = Color.new255(193, 98, 90, 235 ...
-
... 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 //-- ...
-
... 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 ...