-
... oo), { o.addForce(o.gravityForce(oo).neg*100); }); }); }; world.contain(o); //--render Pen.addOval(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... ation: NOT INSTALLED! See also: FoaDecoderMatrix , FoaDecoderKernel Description Renders (decodes) a First Order Ambisonic signal (B-format) to speaker feeds in a variety of configurations. DecodeB2 is the SuperCollider inbuilt equivalent. C ...
-
... d, theChanger; this.translate ; //this.exec ; // call graphviz } snapshot { arg render = false ; this.translate ; if ( render, { this.exec }) ; } } // Setup a GUI with a routine reloading the img file specified in the path // with a trick b ...
-
... { obj.vel= obj.vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.cl ...
-
... { obj.vel= obj.vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.cl ...
-
... lculate accel, vel and loc world.contain(o); //keep object within the world //--render Pen.fillColor= Color.grey(1-(o.mass/12), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... .loc= w.mouse; }); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... (i!=j, { o.addForce(o.gravityForce(oo)); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.blue; Pen.strokeOval(Rect.aboutRedObject2D(o)); }; world.objects.do{|o, i| bary= bary+(o.loc*o.mass); }; bary= bary/totalMass; Pen ...
-
... lculate accel, vel and loc world.contain(o); //keep object within the world //--render Pen.fillColor= Color.grey(1-(o.mass/12), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... .loc= w.mouse; }); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )