-
... aticText(zone, Rect(0,0, 50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inNames.do { |name, i| var wid = u.bounds.width / inNames.size; Pen ...
-
... Rect(100, 200, 400, 400)}; var win= Window(this.class.name, b, false); var usr= UserView(win, Rect(0, 0, b.width, b.height)); usr.background= background ?? {Color.white}; usr.drawFunc= { Pen.translate(b.width*0.5, b.height*0.5); Pen.moveTo( ...
-
... w=Window("Feigenbaum", Rect(160, 40, windowWidth, windowHeight)).front; u = UserView(w, w.view.bounds); u.background=Color.white; u.clearOnRefresh_(false); u.drawFunc={ Pen.fillColor = Color.black; Pen.addRect(Rect(p1, p2, 1, ...
-
... Rect(100, 200, 700, 700)}; var win= Window(this.class.name, b, false); var usr= UserView(win, Rect(0, 0, b.width, b.height)); initTranslate= initTranslate ? Point(0.5, 0.5); usr.drawFunc= { Pen.rotate(initAngle, b.width*0.5, b.height*0.5); ...
-
... w = 1024, h = 600; var win = Window("", Rect(100, 100, w, h)).front; var uv = UserView(win, win.view.bounds); var sinFunc = { |i, periode=2pi| sin((i/n)*periode) }; var lastValues = { 0 }.dup(n); uv.background = Color.black; uv.animat ...
-
... [ Color .black, Color .gray];\ var penWidth = 1;\ \ \ // based on example of SCUserView \ drawing = \ | collective | \ \ var w, v, txt, tmppoints, undone, all, participation;\ tmppoints = (); // dictionary for temp data of each collaborato ...
-
... h]); this.gui(layout, bounds) } gui { arg layout, bounds; var pen, blue; view = UserView(layout, bounds); view.background = Color.white; gridLines = DrawGrid(bounds, GridLines([0.0, maxTime]), nil); pen = GUI.pen; blue = Color.blue; view.dr ...
-
... 50,100)).front; window.view.background_(Color.new(153,255, 102)); chordview = UserView(window); chordview.drawFunc = { |uview| var viewwidth = uview.bounds.width; var viewheight = uview.bounds.height; var imgwidth = img.width; ...
-
... s its source code, change it by code, and do multiple actions with it. It has a UserView for configurable display and interaction modes. Its action is an MFunc to allow configurable actions when activated. For flexible display of number(s), ...
-
... 'A' key on the keyboard ⧉ ✔ . defaultDrawFunc the default drawFunc used by MTPs userview. // see the defaultDrawFunc: MTP.defaultDrawFunc.cs; // only do the finger drawing part of it, with little mods: MTP.start.gui; MTP.uview.drawFunc = { ...