-
... : false, // functions that specify default dimensions of various views numericalRect: { Rect(0,0, ~labelW, ~h) }, smallNumericalRect: { Rect(0,0, ~labelW/2, ~h) }, sliderRect: { Rect(0,0, ~w, ~h) }, vsliderRect: { Rect(0,0, ~vw, ~vh) }, vns ...
-
+ Pen { *transformToRect {|rect, fromRect, keepRatio = false, scale = 1, move = 0.5| var scaleAmt; rect = rect ?? {Rect(0,0,400,400)}; fromRect = fromRect ? rect; rect = fromRect.scaleCenteredIn( rect, keepRatio, scale, move ); scaleAmt = ( ...
-
... ckground { |aColor| if(thisDisplayBackground) { Pen.fillColor_(aColor); Pen.fillRect( Rect( 0, 0, this.bounds.width, this.bounds.height ) ); }; } drawBorder { var borderSize, borderSize2, borderSize3; if(thisDisplayBorder) { borderSize3 = t ...
-
... { ^this; } { ^this.copy.alpha_(alpha * this.alpha); }; } } + Gradient { fill { |rect| if( direction == \h ) { ^Pen.fillAxialGradient( rect.left@rect.center.y, rect.right@rect.center.y, color1, color2 ); } { ^Pen.fillAxialGradient( rect.cent ...
-
... ank of iconographic Pen-functions DrawIcon { classvar <drawFuncs; *new { |name, rect ... more| rect = (rect ? (32@32)).asRect; ^drawFuncs[ name ].value( rect, *more ); // returns pen function } *symbolArgs { |name, rect| var more; more = na ...
-
... d 1024x768 layout if(Window.screenBounds.height == 600) { ~controlpanelBounds = Rect(428, 11, 762, 570); ~useShortBrowser = true; ~serverGui = false; } { ~controlpanelBounds = Rect(428, 11, 762, 713); }; ~mixerBounds = Rect(-7, -26, 435, 26 ...
-
... d 1024x768 layout if(Window.screenBounds.height == 600) { ~controlpanelBounds = Rect(428, 11, 762, 570); ~useShortBrowser = true; ~serverGui = false; } { ~controlpanelBounds = Rect(428, 11, 762, 713); }; ~mixerBounds = Rect(-7, -26, 435, 26 ...
-
+ Point{ constrain{ |rect| if ( rect.contains( this ).not, { x = x.clip( rect.left, rect.left + rect.width ); y = y.clip( rect.top, rect.left + rect.height ); }); } constrainCopy{ |rect| var point = this.copy; if ( rect.contains( this ).not ...
-
// backgroundImage_ + SCImage { drawBackground { |rect, tileMode=1, alpha=1.0, fromRect, operation = 'sourceOver'| var toRect; rect = rect ?? { Rect(0,0,400,400) }; switch ( tileMode, 1, { this.drawAtPoint( rect.leftTop, fromRect, operation ...
-
// wslib 2006 // 1st step to SwingOsc compat :: 03/2008 // - no rounded rects yet: all + Pen { *roundedRect { |rect, radius| // radius can be array for 4 corners var points, lastPoint; radius = radius ?? { rect.width.min( rect.height ) / 2; ...