-
... argSpecX ? [0,1].asSpec; specY = argSpecY ? specX.copy; possibleMethods = [\fillRect, \fillOval, \strokeOval, \strokeRect]; this.symbolSize = 1; symbolColor = symbolColor ? Color.black; background = Color.white; highlightColor = Color.red; ...
-
... .front }); if(w.isNil,{ w = window = GUI.window.new(name.asString ++ " server", Rect(10, named.values.indexOf(this) * 120 + 10, 320, 92)); w.view.decorator = FlowLayout(w.view.bounds); }); if(isLocal,{ if( useRoundButton ) { booter = RoundB ...
-
+ Rect { *multiNew { |...args| args = args ? [0,0,0,0]; args = args.flop; ^Array.fill(args.size, { |i| Rect(*args[i]) } ); } }
-
... pdateContainers; this.refresh; } calculateCaseSize { caseSize = this.interactionRect.bounds.size.asPoint / thisGridSize; } calculateNearestPoint { |mousePos| nearestPoint = Point( mousePos.x.linlin( this.interactionRect.left, this.interacti ...
-
+ Window { *centerRect {|argWidth = 500, argHeight = 500| ^Rect ( (Window.screenBounds.width / 2) - (argWidth / 2), (Window.screenBounds.height / 2) - (argHeight / 2), argWidth, argHeight ); } }
-
... : 0.0 ) }.dup(board.numChannels); //--window var win= Window("fft plot widget", Rect(10, 100, 512, 338)); var fs= "Frequency (Hz)"; var as= "Amplitude (uV)"; win.view.minSize= Size(436, 145); win.background= Color.white; win.drawFunc= { var ...
-
... ight= 300, w, wgrav, world, rep, obj; //--world w= RedWindow("repulsive test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 10); //dim,grav,maxvel,damp //--objects re ...
-
... Color.green(0.9, 0.8); // outvals as colors influx.outNames.do { |name, i| var rect = Rect(0 + (i * colstep), 0, colstep, height); Pen.addRect(rect); Pen.color = Color.grey(1 - influx.outValDict[name].biuni); Pen.fill; Pen.stringCenteredIn ...
-
... , world, acc, vel, loc, obj, visc, vv; //--world w= RedWindow("viscosity test", Rect(128, 64, width, height)).front; world= RedWorld(RedVector2D[width, height], 0, 30); //dim,grav,maxvel,damp //--objects acc= RedVector2D[0, 0]; vel= RedVect ...
-
... thisCenterHelpers = aBoolean; { this.refresh; }.defer; } prDrawSlider { var thisRectPos, thisRectSize; if(super.orientation == \horizontal) { if(super.polarity == \uni) { thisRectSize = super.getXValueMapping( super.value, super.min, super. ...