-
... ) .setSpec( \center, PointSpec( 200, 0.1@0.1 ) ) .setSpec( \radius, PointSpec( Rect(0,0,200,200), 0.1@0.1 ) );
-
... nt, bounds)) .relativeOrigin_(true); this.view.drawFunc_({ var bounds; bounds = Rect(0, 0, this.view.bounds.width, this.view.bounds.height); // frame Color.black.alpha_(0.4).set; GUI.pen.width = 2; GUI.pen.moveTo(bounds.left @ (bounds.top + ...
-
... ates an Image and display it. . makeWindow Display the pixels using Pen and fillRect . . type A string. "BM". . width . height Image dimensions in pixels. . depth Colour depth. 1, 4, 8, 16, 24 or 32. . compression When read from disk. . pal ...
-
... 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 ...
-
... ring { 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; } } Mod ...
-
... ); ///////// 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; } } ...
-
... splayFrame Internal Methods init drawBorder drawBackground drawFrame interactionRect stringCenteredIn Internal Methods : style getters mainColor secondColor backColor backgroundColor disabledColor borderSize secondBorderSize thirdBorderSize ...
-
... 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 ...