-
... 0], 1.5, 10) }.dup(n); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.green; rep.loc= w.mouse; Pen.strokeRect(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o| if(o!=rep, { o.addForce(o.g ...
-
... 0], 1.5, 10) }.dup(n); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.green; rep.loc= w.mouse; Pen.strokeRect(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o| if(o!=rep, { o.addForce(o.g ...
-
... n QC Units m.fontSize_(0.1); m.string_( "SCTV" ).fontName_( "Courier" ); m.startColor_( Color .green); m.billboardEnable_( false ); m.billboardEnable_( true ); m.maxFPS_(5.0); m.maxFPS_(10); m.maxFPS_(0.0); // no max m.getOutputValue( \inte ...
-
... ew.addFlowLayout; SmoothButton( topBarView, 40@size ) .states_( [ [ \play, nil, Color.clear ]] ) .canFocus_(false) .font_( font ) .action_({ session.prepareAndStart }); SmoothButton( topBarView, 40@size ) .states_( [ [ \stop, nil, Color.cle ...
-
... ); views[ \read ] = SmoothButton( view, 35 @ viewHeight ) .states_( [ [ "read", Color.black, Color.green(1,0.25) ] ] ) .radius_(2) .action_({ if( presetManager.filePath.notNil ) { SCAlert( "Do you want to read the default settings\nor impor ...
-
... int; var setScale, setTrans, scales, scaleNames, scaleMenu; var boxColList, makeColorList, server; var transBuf, scaleBuf, outbus, outbusPoP, glvol; server = argserver ? Server.default; // screen resolution screenX = GUI.window.screenBounds ...
-
... , <>offset=2, pview,<collapseFunction,>scale = 0.5, >eq = false, <>storeBounds,>color, <>minHeight,>drawFunction; *viewClass {^ UserView} *new { arg parent, bounds; ^super.new.init(parent, bounds); } init { arg argParent, argBounds; var w,s ...
-
... vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); )
-
... vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.red; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); )
-
... names, <logs, textViewSize = 0, connected = false, <>font, <>boldFont, <>regularColor, <>errorColor, backgroundColor, pending, lastFlush = 0; init { logs = IdentitySet(); names = IdentitySet(); font = Font("Mplus Code 60", 11).weight_(10); ...