-
... dForce(world.gravity); o.addForce(wind); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey(o.mass/4); Pen.strokeRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... 2D[0, sys.wave.wrapAt(i)]; o.addForce(world.gravity); }; sys.update; //--render Pen.fillColor= Color.grey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... i| o.addForce(world.gravity); o.update; if(o.age<=0, {dead.add(o)}); //--render Pen.fillColor= Color.red; Pen.addOval(Rect.aboutRedVector2D(o.loc, o.age)); Pen.fill; }; dead.do{|o| world.remove(o)}; }; w.play; CmdPeriod.doOnce({w.close}); ) ...
-
... ludeSettings: false ); \ \);\ \\ \;\ \;\ \ \ \ drawLine = \ |x, inset=0| \ GUI .pen.beginPath;\ GUI .pen.moveTo(x @ (5 + inset));\ GUI .pen.lineTo(x @ (vv.bounds.height + 5 - inset));\ GUI .pen.stroke;\ \;\ w.drawHook_\\ GUI .pen.use \ \ GU ...
-
... eg2000 {^5;} // carefull: supported only in 10.4 } lockFocus, unlockFocus - All Pen commands between those two call will draw inside the Image. Caution: Normally, it will use by default the Quartz coordinate system. See examples on how to s ...
-
... -1; synths[i].set(\amp, amp, \freq, freq, \pan, pan); }; sys.update; //--render Pen.fillColor= Color.grey(1, 0.4); sys.do{|o, i| if(i.odd, { Pen.fillOval(Rect.aboutRedObject2D(o)); }, { Pen.fillRect(Rect.aboutRedObject2D(o)); }); }; }; w.pl ...
-
... orce(o.gravityForce(oo).neg); }); }); }; o.update; world.contain(o); //--render Pen.fillColor= Color.hsv(0.4, 1-(o.mass/12), 1, o.mass/12); Pen.fillRect(Rect.aboutPoint(o.loc.asPoint, 0.5, 0.5)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... ds.width; var uh= usr.bounds.height; var cur= xCurvSpec.map(xCurvSlider.value); Pen.strokeColor= palette.buttonText; a= (0..99)/99; if(cur!=0, { ~func= {|t, a= 15| atan((t-0.5)*a)/(2*atan(0.5*a))+0.5}; }, { ~func= {|t, a= 15| t}; }); a.do{| ...
-
SmoothButton part of wslib a Pen -based replacement for SCButton , with extra styling options. SmoothButton works the same way as SCButton. But, as the name states, it is smooth. SmoothButton is a subclass of RoundButton and shares all of i ...
-
... ; udefController.remove; if( chain.isKindOf( MassEditUChain ) ) { chain.removeDependantFromChains( massEditController ); }; this.removeFromAll; if( composite == vw && { current == this } ) { current = nil } }; // startbutton views[ \startBu ...