-
... (i-1).loc); //o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey((depth-o.loc[2]/(depth*0.5)).clip(0, 1)); Pen.strokeOval(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.close}); ...
-
... center, rect.width.min( rect.height ) / 5, rect.width.min( rect.height ) / 4 ); Pen.line( square.leftBottom, square.leftTop ); Pen.lineTo( square.rightTop ); Pen.lineTo( square.right @ (square.top + (square.height / 2) ) ); Pen.lineTo( squa ...
-
... <>oldBeat, stopSeq, playSeq, isPlaying, blobInBeats, <>idBlobDict, addBlobWin, pendingJumpTo, pendingJumpBeat; var <>menuList; var <codeBlobs; var <>codeEnvirs, <curEnvirIndex; *initClass { this.addHadronPlugin; } *new {|argParentApp, argI ...
-
... 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), ...
-
... 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 ...
-
... 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 ...
-
... f(aMosca.graphicpath.notNil){ var gwidth, gheight; aMosca.graphicImage = Image.open(aMosca.graphicpath); gwidth = aMosca.graphicImage.width; gheight = aMosca.graphicImage.height; aMosca.graphicOrigin = Point((gwidth / -2), (gheight / -2)); ...
-
... 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 ...