-
Library keeping objects in a central place Inherits from: Object : Collection : MultiLevelIdentityDictionary : LibraryBase Library is a global MultiLevelIdentityDictionary. see also: Archive , LibraryBase Methods: see superclass. The last a ...
-
... dWorld3(RedVector2D[width, height], wgrav, 15, 0.5); //dim,grav,maxvel,damp //--objects objs= { var loc= RedVector2D[250, 10].rand; //initial xy location var vel= RedVector2D[3.5, 0].rand; //initial velocity var acc= RedVector2D[0, 0]; //in ...
-
... dWorld3(RedVector2D[width, height], wgrav, 15, 0.5); //dim,grav,maxvel,damp //--objects objs= { var loc= RedVector2D[250, 10].rand; //initial xy location var vel= RedVector2D[3.5, 0].rand; //initial velocity var acc= RedVector2D[0, 0]; //in ...
-
// use Ndef.defaultServer in new and printOn methods. + Ndef { *new { | key, object | // key may be simply a symbol, or an association of a symbol and a server name var res, server, dict; if(key.isKindOf(Association)) { server = Server.name ...
-
... RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim,grav,maxvel,damp //--objects {|i| var loc= RedVector2D[width/n*i, height*0.5]; RedObject(world, loc, nil, nil, 10, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ thet ...
-
... RedWorld(RedVector2D[width, height], wgrav, 5, 0.8); //dim,grav,maxvel,damp //--objects {|i| var loc= RedVector2D[width/n*i, height*0.5]; RedObject(world, loc, nil, nil, 10, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ thet ...
-
... o be implemented as a Lift. So we see perhaps some convergence around ExtendableObject and Lift. */ Polite : AbstractDelegator { doesNotUnderstand { |selector ... args| args = args.collect { |each| each.politeCall(this, selector, args) }; ^ ...
-
+ Object { *test { arg resetFailures=true,report=true; UnitTest.runTestClassForClass(this,resetFailures,report) } }
-
+ Object { dot { | aStream | aStream << "// dot..." << this.class.asString << "\n" } dotEdge { } isControlProxy { ^false } }
-
... dWorld1(RedVector2D[width, height], wgrav, 30, 0.8); //dim,grav,maxvel,damp //--objects trg= RedObject(world, RedVector2D[width*0.5, height*0.3]); objs= {|i| RedObject(world, RedVector2D[width*0.5+i, height*0.3+i], RedVector2D[0, 0], RedVec ...