-
SVGEllipse Part of wslib see also: SVG , SVGFile superclass : SVGObject The SVGEllipse holds the data for an ellipse creation SVGEllipse ( cx, cy, rx, ry, name, strokeColor, fillColor, strokeWidth, transform ) creates a new object with the ...
-
... front; world= RedWorld1(RedVector2D[width, height]); //dim,grav,maxvel,damp //--objects ~leftObj= RedObject(world, RedVector2D[width/3, height/2], RedVector2D[0, 0], RedVector2D[0, 0], 1, 5); ~rightObj= RedObject(world, RedVector2D[width/3* ...
-
... /////////////// // draw dynamic elements //TODO: not create a new instance of SSObject for each draw! make a visual object instead if (world.objects.size > 0 ) { world.objects.do { |obj| if (obj.present) { // mirror dimensions!! var x=(obj. ...
-
OSCReceiver An object for remote controlling scLang by any other application through OSC-messages. Uses [ OSCReceiverFunction ] as controllable objects. *new(name, addr) new instance listening for messages of type name from addr. start star ...
-
... dWorld3(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1.rrand(3); RedBoid(world, loc, vel, RedVector2D[0, 0], mass ...
-
... frpControlNames; //similar to NodeMap for FRP network controls //shared for all objects / eventNetworks var <>frpNodeMap; //IdentityDictionary //contains FRP controls similar to NamedControl in synth definitions //contains events of this ty ...
-
... .defer; }, // not for remote calling. // this is for other apis to get a player object _get: { arg reply, uuid; reply.value(get.value(uuid)); }, _set: { arg reply, uuid, player; uuid = asuuid.value(uuid); reply.value(set.value(uuid, player) ...
-
... se along with Cluster Library. If not, see <http://www.gnu.org/licenses/>. */ + Object { clusterfy{ if(ClusterBasic.allSubclasses.collect(_.oclass).includes(this.class)){ ^("Cluster"++this.class.asCompileString).compile.value.fromArray([thi ...
-
... m,grav,maxvel,damp //--interface ~k= 10; //number of centroids ~www= world; //--objects { var loc= RedVector2D[width.rand, height.rand]; var vel= RedVector2D[0.3.rand2, 0.3.rand2].round(0.1); RedObject(world, loc, vel, 0, 1, 3); //world,loc ...
-
... 8, 164, width, height)).front; ~world= RedWorld.new; //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,ve ...