-
... 3]; point.update; //--render point.render(1, 300); //1= exaggerate, 2= standard Pen.translate(width*0.5, height*0.5); Pen.fillColor= Color.white; point.draw(12); //dotSize }; w.play; CmdPeriod.doOnce({w.close}); )
-
... ts.do{|o, i| o.addForce(world.gravity); o.update; world.contain(o)}; //--render Pen.fillColor= Color.blue(1, 0.5); Pen.width= 3; world.objects.do{|o, i| Pen.fillOval(Rect.aboutRedVector2D(o.loc, i.linexp(0, n, 1, n)+5)); }; }; w.play; CmdPe ...
-
... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.fillColor= Color.green(0.6, 0.3); physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass*(1-(p.age/maxAge)), p.mass* ...
-
... e. Arguments: string A label for the separator. These are not always visible, depending on your OS and context. Inherited class methods Undocumented class methods MenuAction. qtClass Instance Methods . string . string = str From superclass: ...
-
... .height*scale), false); var image; win.background= Color.green; win.drawFunc= { Pen.smoothing= false; image= a.images[0]; image.data.do{|col, i| if(image.control.transparentFlag.not or:{ image.control.transparent!=image.indices[i] }, { Pen. ...
-
... ld(-90, 90); lsys.reset; lsys.next; lsys.next; lsys.next; lsys.next; //--render Pen.strokeColor= Color.white; Pen.translate(width*0.5, height*0.8); lplot.draw; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... t.lsystem= lsys; lsys.reset; cnt= -1; }); }); lsys.next; cnt= cnt+1; //--render Pen.strokeColor= Color.white; Pen.translate(width*0.5, height*0.667); lplot.draw; }; w.play(2); //fps CmdPeriod.doOnce({w.close}); )
-
... oval at each point (in each corner). Must be called inside a draw function. Use Pen.fillColor_ to set the color. Arguments: dotSize The size of the oval. . drawOutlines Draws a line between each point (all edges). Must be called inside a dr ...
-
... avity= RedVector2D[0.1.rand2, 0.1.rand2]; ~distance= 10.rand+1; rrr= 0.6.rand2; Pen.strokeColor= Color.black; (100+2).rand.do{ //--separate free and frozen objects free= world.objects.select{|o| o.vel!=still}; frozen= world.objects.select{| ...
-
... avity); sys.update; //--render sys.do{|o| //iterate all particles in the system Pen.fillColor= Color.grey((o.age/50), 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )