-
... 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}); )
-
... axfreq)-log(minfreq))*(h+(maxWidth*v))/(maxWidth*maxHeight) Furthermore freq depends on value, which is either 0 or 1. freq=freq+(freq*value) or freq=(1+value)*freq Combining those 2: freq=(exp(log(maxfreq)-((log(maxfreq)-log(minfreq)) ...
-
... axfreq)-log(minfreq))*(h+(maxWidth*v))/(maxWidth*maxHeight) Furthermore freq depends on value, which is either 0 or 1. freq=freq+(freq*value) or freq=(1+value)*freq Combining those 2: freq=(exp(log(maxfreq)-((log(maxfreq)-log(minfreq)) ...
-
... 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), ...
-
... 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), ...
-
... false ) //.canFocus_( false ) ; view.drawFunc = { |v| if( background.notNil ) { Pen.color = background; Pen.fillRect( v.drawBounds ) }; pos.asSMPTEString( 1000 ) .drawStretchedIn( v.drawBounds, Font( fontName, fontSize ), fontColor ); //.dr ...
-
... e; ~green=1-(~tabel[v,h]/~maxValue); r = Rect(h*z+10, v*z, z,z); Pen.color=Color(~red, ~green, 0); Pen.addRect(Rect(h*z, v*z, z, z)); Pen.fill; (~tabel[v,h]+32).asAscii.asString.drawInRect(r, Font("Times", 24 ...
-
... ], [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 ...
-
... 8 + 20, 20), resizable: false, border: false) .alwaysOnTop_(true) .drawFunc_({ Pen.fillColor = Color.white; Pen.fillRect(tooltipWindow.bounds); }); StaticText(tooltipWindow, Rect(5, 2, text.size * 8 + 10, 16)) .string_(text) .align_(\left) ...
-
... ; }); } }); */ } draw{ ^{ var point; point = tailArray[0]; // Color.red.set; // Pen.fillOval(Rect( // (point.x).round(1)+0.5-(size/2), // (point.y).round(1)+0.5-(size/2), size, size)); Color.black.set; // Pen.strokeOval(Rect( // (point.x).r ...