-
... collide(oo)}; //faster but less accurate 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}); )
-
... aw{ obj.vel= lorenz.value(obj.loc, ~sigma, ~rho, ~beta); obj.update; //--render Pen.fillColor= Color.grey((obj.loc[2]/(depth*0.5)).clip(0, 1)); Pen.fillOval(Rect.aboutRedVector3D( (obj.loc*15+[width*0.5, height*0.5, depth*0.5]).at(~order), ...
-
... ], [curve.neg, curve]); var curveResolution = numSteps * 8; // relative to 0, 0 Pen.translate(strHeight * 0.5, height * 0.5) .rotate(-0.5pi) .stringCenteredIn("Equal durations in", Rect(height * -0.5, strHeight * -0.5, height, strHeight), F ...
-
... e(obj[\particle]); obj[\synth].set(\gate, 0); objects.remove(obj); }; ~ps.tick; Pen.fillColor= Color.black; objects.do{|obj| var age= obj[\particle].age; var delta= obj[\delta]; var size= age.linlin(0, maxAge, 100, 0)*obj[\particle].mass; v ...
-
... ts.do{|o, i| o.addForce(world.gravity); o.update; world.contain(o)}; //--render Pen.fillColor= Color.green(1, 0.4); world.objects.do{|o, i| Pen.fillRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... rCollider used to have a pretty nasty GUI class system that involved platform-dependent classes like SCWindow. This system is completely gone in 3.7 with a unified Qt GUI. You will still see remnants of the old GUI classes in some SuperColl ...
-
... freq, \maxDur, osize, \amp, amp, \pan, pan]); }); world.contain(o); //--render Pen.strokeColor= Color.grey(o.mass/4, 0.7); Pen.strokeOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); })
-
... LSystem Location: NOT INSTALLED! See also: RedLSystem Description Plotting with Pen . After Flake - "The Computational Beauty of Nature". Class Methods . new Arguments: lsystem An instance of RedLSystem or a String . length Line segment len ...
-
... . plot Generates an Image and display it. . makeWindow Display the pixels using Pen and fillRect . . type A string. "BM". . width . height Image dimensions in pixels. . depth Colour depth. 1, 4, 8, 16, 24 or 32. . compression When read from ...
-
... orceWander2D; o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.fillColor= Color.grey(o.state[\cell]*0.85+0.15, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )