-
... ns: %, numRows: % \n\n".postf(numColumns, numRows); w = Window("Startup files", Rect.aboutPoint(Window.screenBounds.center, numColumns * 75, numRows + 4 * 15 ) ); w.view.minSize_(Size(150, 170)); w.view.maxSize_(Size(*Window.screenBounds.ex ...
-
... ); if(swipeStart.notNil, { pen.use { pen.color = Color.blue(alpha:0.3); pen.fillRect( Rect(min(swipeStart, lastx), 0, (lastx - swipeStart).abs, bounds.height) ) } }); }; view.mouseDownAction = { arg view, x, y, modifiers, buttonNumber, clic ...
-
... ~visrep); //SLIDERS TO DEBUG WANDER Slider( GameLoopGUI.instance.mainView.view, Rect(0, 200, 50, 200); ).action_({ arg i; ~wander.wanderRadius = (20 * i.value).debug("Radius") }); Slider( GameLoopGUI.instance.mainView.view, Rect(100, 200, 5 ...
-
... lor .red; } // GUI style color setting { Color .red.set }; GUI .pen.strokeOval( Rect (10,10,380,280 ) ); }; w = GUI .window.new( "testplot" ).front.drawHook_( d ); ) f = d.asSVGFile( "~/Desktop/test asSVGFile" ); // creates a file (doesn't ...
-
... ///////////////////////// ( var w, b, u, f, z, level=0; w = SCWindow ( "test" , Rect (40, 240, 200, 200)).front; w.view.decorator = FlowLayout (w.bounds.copy.left_(30).top_(30)); b = { |i| { |j| var c = ({ "abcd" .choose } ! 3).join; SCButt ...
-
... thisSVGPath = ""; this.refresh; }; } resizeSVG { var hRatio = super.interactionRect.width / thisSVGSize.x; var vRatio = super.interactionRect.height / thisSVGSize.y; var width; var height; thisSVG.free; if(hRatio < vRatio) { width = (super ...
-
... ntainer | /* DEFINE EQ GUI */ var equalizerComposite = CompositeView(container, Rect(5, 5, 700, container.bounds.height - 15)); var userView = UserView(equalizerComposite).minHeight_(equalizerComposite.bounds.height-80); equalizerComposite. ...
-
... r ctrl; if( parent.isNil ) { parent = this.class.asString; bounds = bounds ?? { Rect( 400 rrand: 450, 120 rrand: 150, 806, 572 ) }; } { bounds = parent.asView.bounds; }; view = EZCompositeView( parent, bounds, gap: 2@2, margin: 2@2 ); view. ...
-
... dow(); ~fdex.w.addFlowLayout(2@2, 1@1); ~fdex.faders = {{ |i| EZSlider(~fdex.w, Rect(0,0,23,95), i, layout: \vert) }!16 } ! 4; ~fdex.w.front; ~fdex.faders.shape; // create vars and methods to select a group of 4 highlighted faders // init v ...
-
... ] = UserView( composite, 28@14 ) .resize_(3) .drawFunc_({ |vw| var wd = 8, smallRect; if( chain.displayColor.notNil ) { Pen.roundedRect(vw.drawBounds, wd); chain.displayColor.penFill(vw.drawBounds, 1, nil, 10); smallRect = Rect( vw.bounds.w ...