-
... 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. ...
-
... guis. First code examples: w = Window("Compass").front; z = CompassView(w.view, Rect( 200, 100,100,100)); z.action = { |comp| comp.dump }; z.nameView.string = "test"; z.value = 0; z.value = rrand(1, 8); z.valueAction = 0; z.valueAction = rr ...
-
... 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. ...
-
... = Window("manta").front; h = 6.collect { |j| 8.collect { |i| var h = MHexPad(w, Rect(i * 45 + (j % 2 * 22), j * 40, 45, 45)).mode_(\noteOnLed); h.action = { |el| "pad %, % vel % \n".postf(j, i, el.value.round(0.01)) }; h.upDoesAction = true ...
-
... 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 ...
-
... sSpec, \peakX : [0, 240, \lin].asSpec, \peakY : [0, 139, \lin].asSpec, //// "correct" values // \force : [0, 8192, \lin].asSpec, // \peakForce : [0, 8192, \lin].asSpec, // \tForce : [0, 3*8192, \lin].asSpec, // \dForce : [0, 3*8192, \lin].a ...