-
... ); ///////// on KeyPlayerGui window: NTMI.ro.uv = UserView(NTMI.g.kpgui.parent, Rect(0, 200, 420, 100)); NTMI.ro.uv.background_(Color.grey(0.95)); NTMI.ro.uv.drawFunc = { |uv| Pen.stringCenteredIn(NTMI.ro.str, (uv.bounds.extent * (1@0.5)).a ...
-
... eight= 512, w, cnt= 0, lsys, lplot; //--world w= RedWindow("lsystem grow test", Rect(128, 64, width, height)).front; lsys= RedLSystem("F", ($F: "F[+F--F]+F")); lplot= RedLTurtle(lsys, 5, 5); //length, theta //--loop w.draw{ if(cnt==0, { lsy ...
-
... g { arg prompt, defaultString, callback; var b; Sheet({ arg l; b = TextField(l, Rect(0, 0, 150, 30)); b.string = String.new ++ defaultString; b.action = {arg field; callback.value(field.value); l.close; }; }, prompt); { b.focus }.defer; } } ...
-
... W, { // make a window ... q.draw.win = Window("DRAW", WinBounds.stored[\DRAW] ? Rect(400,400,400,400)).front; q.draw.win.alpha_(0.7); // and put a userview on it, on which we can we draw: q.draw.uv = UserView(q.draw.win, q.draw.win.bounds.e ...
-
... xIndex; this.refresh; }; }; }; } draw { var caseSize = Point( super.interactionRect.width / thisValues.size, super.interactionRect.height ); var symbolSize = min( caseSize.x * thisSymbolRatio, caseSize.y / 2 * thisSymbolRatio ); var newSym ...
-
+ Rect { radiusH {^width/2} radiusH_ { |dx| ^this.class.aboutPoint(this.center, dx, height/2)} radiusV {^height/2} radiusV_ { |dy| ^this.class.aboutPoint(this.center, width/2, dy)} centerTop {^Point.new(left + (width/2), top) } centerTop_ { ...
-
... 5-50'); width= width.min(board.bufferSize); win= Window("gui example userview", Rect(10, 100, width, height)).front; img= Image.color(width, height, Color.black).interpolation_(\fast); win.drawFunc= { var chanHeight= height/board.numChannel ...
-
... ut, Pan2.ar(z, pan)); }).add; s.sync; //--world w= RedWindow("agents test ca2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; //world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp world= R ...
-
... ) .setSpec( \center, PointSpec( 200, 0.1@0.1 ) ) .setSpec( \radius, PointSpec( Rect(0,0,200,200), 0.1@0.1 ) ) .setSpec( \angleStep, [0,360].asSpec ) .setSpec( \step, [0,1].asSpec );
-
... see <http://www.gnu.org/licenses/>. */ /* View that shows events of a score as rectangles with rounded corners. */ UScoreView { classvar <spaceBarPlayAnyway = false; classvar <>showGrid = true; classvar <>showUChainNames = true; classvar < ...