-
... , world, acc, vel, loc, obj, visc, vv; //--world w= RedWindow("viscosity test", Rect(128, 64, width, height)).front; world= RedWorld(RedVector2D[width, height], 0, 30); //dim,grav,maxvel,damp //--objects acc= RedVector2D[0, 0]; vel= RedVect ...
-
... s ( var a; a = { |i| var w, b, x,k,t,p; k=i; i = i + 1; w = Window("resize:"+i, Rect(10 + (k%3 * 220), Window.screenBounds.height- [250,460,670].at(k/3), 200, 180)); b = w.view.bounds; x = CompositeView(w, w.view.bounds.insetBy(20,20)) .bac ...
-
... makeWindow Creates a Window and draws. Mainly for testing. Arguments: bounds a Rect that define window size and position background a Color . plot Creates a Window and an Image . Also mainly for testing. Arguments: width in pixels height i ...
-
... bj, obj2, trg, mp, spr1, spr2; //--world w= RedWindow("spring interconnected3", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0]; world= RedWorld1(RedVector2D[width, height], wgrav, 30, 0.1); //dim,grav,maxvel,damp ...
-
... ght= 300, w, wgrav, world, n= 3, att; //--world w= RedWindow("attractor test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--obje ...
-
... y be shown if the contents can not be resized small enough in the scrollbar's direction. See -canvas for further explanation. Restrictions NOTE: The View: -resize mode of the children is ignored. One should not use a decorator such as FlowL ...
-
... ht= 300, w, wgrav, world, n= 10, rep; //--world w= RedWindow("repulsive test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.1]; world= RedWorld(RedVector2D[width, height], wgrav, 5); //dim,grav,maxvel,damp //--objects rep= ...
-
... w, world, acc, vel, loc, obj, fric, ff; //--world w= RedWindow("friction 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 ...
-
... 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 ...
-
... 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 ...