-
... n.color = Color.hsv(setObj.classID+1 * 0.2, 1, 1, alpha: 0.25); }); GUI.pen.fillRect(Rect(oExtent*0.15, oExtent*0.15, oExtent*0.7, oExtent*0.7)); }; GUI.pen.use{ GUI.pen.color = Color.black; GUI.pen.string(setObj.id.asString); }; /*GUI.pen. ...
-
... 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 ...
-
... 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 ...
-
... ty of creating subwindows /* subwin = FlowView.new( parent: win, bounds: Rect(710, 230, 185, 150), margin: 10@10, gap: 10@10; );*/ //////////////////// // window creation //////////////////// w=Window("frequency ...
-
... 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 ...
-
... ust duration of events. In this version you don't specify Modulator Frequency directly, but rather you specify the Frequency Ratio. // ************************************ // Frequency Modulation Fun (GUI) // Patch 4 - Using Frequency Rat ...