-
... it {|argParent| parent = argParent; isStarted = false; win = Window("GAPmatch", Rect(300, 300, 280, 100), false).userCanClose_(false); genText = StaticText(win, Rect(10, 10, 250, 20)).string_("Current generation: 0"); fitText = StaticText(w ...
-
... ( _.y ); } z { ^this.collect( _.z ); } asEnvViewInput { |autoScale = false, fromRect | var new; if(autoScale) { new = this.scaleToRect( Rect(0,0,1,1), fromRect ); ^[new.x, new.y] } { ^[this.x, this.y] }; } scaleToRect { |toRect, fromRect, k ...
-
... ht= 300, w, wgrav, world, n= 50, ploc; //--world w= RedWindow("pendulum test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.02); //dim,grav,maxvel,damp //--obje ...
-
... playPoints = 12 | ^super.newCopyArgs(numDisplayPoints).prInit; } prInit { var directions; xfMargins = [5, 3, 5, 3]; xfHeight = 80; chainViewWidth = 500; chainViewHeight = 200; chTitleHeight = 40; addRmvMargins = [4, 2, 4, 2]; xfIDwidth = 20 ...
-
... colors = Color .black!3;\ \ window = SCWindow .new( "Virtual Ambient Lights" , Rect (400, 400, colors.size*(i_width+pad) + (2*pad), i_width+50)).front;\ window.view.background_( Color .black);\ window.drawHook = \\ \ Pen .use \\ Pen .trans ...
-
... p.imuvals); }; }; }, 0.05); MTP.start.gui; MTP.resetActions; MTP.guiWin.bounds_(Rect.aboutPoint(Window.screenBounds.center + (0 @ -60), 260, 190)); MTP.uview.background_(Color.grey(0.4, 0.6)); MTP.guiWin.view.alpha_(0.8); MFdef(\mtp).add(\p ...
-
... ould/might display WinBounds.addMake(\webMouse, { var win = Window("\webMouse", Rect(200, 600, 200, 400)).front; win.alpha_(NTMI.g.alpha); NTMI.webMouse.win = win; NTMI.webMouse.uv = UserView(win, win.view.bounds).front; NTMI.webMouse.uv.cl ...
-
... Pen.fillColor_(super.beatColor); if(super.orientation == \horizontal) { Pen.fillRect( Rect( super.interactionRect.left + (thisBeat * (super.interactionRect.width / super.values.size)), super.interactionRect.top, super.interactionRect.width ...
-
... r width= 300, height= 300, w, wgrav, world; //--world w= RedWindow("rock test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 3, 0); //dim,grav,maxvel,d ...
-
... = Array.fill( nPoints - 1, { deltaTime }); ^WFSPath( points, times, name ); } *rect { |left = -1, top = 1, width = 2, height = 2, cr = 0, cd = 5, length, name| // cr: rounded corner radius; cd: rounded corner division var points, times, de ...