-
... rawIcon { classvar lightColor, >randomSeed=77, <>globalScale=0.8; *new { |name, rect ... more| rect = (rect ? (32@32)).asRect; ^this.drawFuncs.at(name).value( rect, *more ); // returns pen function } *initClass{ \DrawIcon.asClass.notNil.if{ ...
-
... , newBounds; offSet ?? {offSet = this.screenBounds.width}; { win = this.new("", Rect(offSet, 0, 100, 100)); 0.1.yield; win.fullScreen; 0.1.yield; newBounds = win.bounds; 1.yield; win.endFullScreen; 0.3.yield; win.close; newBounds.postln; }. ...
-
... e works only on the local server!"); }); }); } initFreqScope { arg setting; var rect, scope, pad, font, freqLabel, freqLabelDist, dbLabel, dbLabelDist; var setFreqLabelVals, setDBLabelVals; var scopeColor, bgColor, height, busNum; var onOff ...
-
... w("background should be elastic when you resize the window"); h = HLayoutView(w,Rect(0,0,300,300)); h.background = Color.red(alpha:0.1); h.resize = 5; // elastic Array.fill(q, { arg i; var s; s = Slider(h, Rect(0,0,20,75)); s.value = i / q; ...
-
... losarturoguerra@gmail.com> */ SGME_GUIPanel4 : SGME_GUIPanel { makeWindow { var rect; var image; var left, top; id = 3; super.makeWindow; rect = Rect( left: Window.availableBounds.width/(3/4), top: Window.availableBounds.height/1.9, width: ...
-
... losarturoguerra@gmail.com> */ SGME_GUIPanel2 : SGME_GUIPanel { makeWindow { var rect; var image; id = 1; super.makeWindow; rect = Rect( left: Window.availableBounds.width/4, top: Window.availableBounds.height/1.9, width: window.bounds.width ...
-
... l)) } ) ); ); ( w = Window("record moves and play them").front; t = Slider2D(w, Rect(0,0, 160, 160)) .action_({ |sl| var x, y; x = sl.x; y = sl.y; c.recordEvent(\x, x); c.recordEvent(\y, y); Ndef(\test).set( \pFreq, \pFreq.asSpec.map(x), \p ...
-
... nBounds.storeAll; WinBounds.saveString; ***/ WinBounds.stored.putAll( ( 'Butz': Rect(5.0, 439.0, 123.0, 566.0), 'sharedHistory': Rect(270.0, 35.0, 314.0, 413.0), 'ndefmix': Rect(580, 23.0, 684.0, 489.0), 'Tdef.all': Rect(270.0, 491.0, 274.0 ...
-
... = specs.collect({ |argSpec, i| var view; view = argSpec.makeView( vws[ \view ], Rect( labelWidth + 2, i * halfHeight, bounds.width-(labelWidth + 2 + halfHeight + 2), halfHeight-2 ), nil, { |vw| vws[ \val ] = vws[ \val ].copy.put(i,vw.value) ...
-
... = specs.collect({ |argSpec, i| var view; view = argSpec.makeView( vws[ \view ], Rect( labelWidth + 2, i * halfHeight, bounds.width-(labelWidth + 2 + halfHeight + 2), halfHeight-2 ), nil, { |vw| vws[ \val ] = vws[ \val ].copy.put(i,vw.value) ...