-
... nd = color } background { ^view.background } bounds { ^view.bounds } bounds_ { |rect| rect = rect.asRect; view.bounds = rect; uview.bounds = view.bounds.moveTo(0,0); topView.bounds = view.bounds.moveTo(0,0); } add { |child| topView.add( chi ...
-
... ate.com/physics/ ( var width= 400, height= 400; var win= Window("Bouncy Balls", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, b, c; var physics; var handleBoundaryCollisions; usr.backgr ...
-
... n ) .string_( " units" ) .align_( \left ) .resize_(2); io = SmoothButton( comp, Rect( comp.bounds.right - 40, 1, 40, 12 ) ) .label_( "i/o" ) .radius_( 2 ) .background_( RoundView.skin[ 'SmoothButton' ] !? _.hiliteColor ? Color.green ) .acti ...
-
//f.olofsson 2019 ( //--settings var winRect= Rect(0, 60, 800, 120); //x, y, w, h var palette= SGUI.palette; var fnt= SGUI.font.copy.size_(10); var range= #[36, 96]; //minmax range in midinotes, first&last black keys are ignored //--functio ...
-
... Width = argButtonWidth; if(windowWidth.isNumber,{ // backwards compat wbounds = Rect(20,20,windowWidth ? buttonWidth + 10,height); },{ wbounds = windowWidth.asRect }); layout = parent ?? { isMyLayout = true; PageLayout.new("menu",wbounds,sc ...
-
... idth = argButtonWidth; if(windowWidth.isNumber, { // backwards compat wbounds = Rect(20, 20, windowWidth ? buttonWidth + 10, height); }, { wbounds = windowWidth.asRect }); layout = parent ?? { isMyLayout = true; PageLayout.new("menu", wboun ...
-
... iew.pixelScale.x * 5; px10Scaled = scaledUserView.pixelScale.x * 10; this.createRect(px10Scaled, scaledUserView.fromBounds.width); //fadeAreaHeight = (rect.height*0.3); this.ifIsInsideRect( mousePos, { // var fadeInAreaBiggerThen10Pixels = ...
-
... iew.pixelScale.x * 5; px10Scaled = scaledUserView.pixelScale.x * 10; this.createRect(px10Scaled, scaledUserView.fromBounds.width); //fadeAreaHeight = (rect.height*0.3); this.ifIsInsideRect( mousePos, { // var fadeInAreaBiggerThen10Pixels = ...
-
... arams[0] * 2}); outbus = params[1]; amp = params[2]; win = GUI.window.new(name, Rect(point.x, point.y, 222, 70), resizable:false); SynthDef(\xiiChannelSplitter1x1, { arg inbus, outbus, amp=1; var in; in = InFeedback.ar(inbus, 1); Out.ar(out ...
-
... .newClear (size) - new empty Image with an initial size of size size might be a Rect (it will take only the with and height values) or a Size or a Point (wich allows you to use the 200@200 syntax). (info: On return the newly allocated image ...