-
... ts.choose, rrand(12, 72)); d.w = Window("text").front.alwaysOnTop_(true); d.u = UserView(d.w, Rect(0,0,400,400)); d.u.resize = 5; d.w.background_(Color.clear); d.u.addHalo(\ev, ()); d.u.drawFunc = { |u| var ev = u.getHalo(\ev); var scaleFac ...
-
... lor.blue, Color.white, Color.white, Color.black ] ].asList; var demo_view = UserView(); var demo_string = ""; var demo_function; ~get_multi_button_view = { | states_array, default_state, orientation, font, has_inside_margin | v ...
-
... .value * zoom, seqView.bounds.height-50)).background_(Color.blue); tracksView = UserView(tracksHolder, Rect(0, 0, numBpb.value * 4 * numBars.value * zoom, seqView.bounds.height-50)) .resize_(5) .clearOnRefresh_(false) .background_(Color.gra ...
-
... , char, xxx, code| if(code==32){ w.refresh; t = t.not; u.animate = t; } }; u = UserView(w, w.view.bounds); u.background = Color.black; u.animate = t; u.frameRate = 30; u.clearOnRefresh = false; u.drawFunc = { |view| var i = view.fra ...
-
... side w = Window("Draw your waveform!", Rect(100, 100, 1024, 512)).front; u = UserView(w, w.view.bounds); // function that changes the array and the buffer, and makes some clipping f = { |x, y| x = x.clip(0, 1023); y = y.clip(0, 5 ...
-
... onClose_{task.stop}; } } RedMstGUI2 : RedMstGUI { prInitMetro {|size| guiMetro= UserView(win, (size*1.5)@(size*1.5)) .drawFunc_{|view| var midPnt= Point(view.bounds.height, view.bounds.width)*0.5; var inner= view.bounds.height*0.3; var oute ...
-
... rg parent, bounds; if(parent.notNil, { parent = parent.asFlowView(bounds); uv = UserView(parent, bounds ?? {parent.indentedRemaining}); }, { bounds = bounds ?? {Rect(0, 0, 500, 500)}; parent = Window("SynthiX", bounds).front; uv = UserView( ...
-
... n = Window("Example Graphical LSystem", bounds:Rect(0,0,1000,700)); var view = UserView(win, win.view.bounds.insetBy(50,50)); var lsys = LSystem( iterations:12, axiom:"FX", constants:Set[], rules:(\X : "X+YF+", ...
-
... 00)).front; Piano.layout(48, 72).do { |ev| var color = Color.perform(ev.color); UserView(w, Rect(ev.x * 20 + 4, ev.y * 50 + 4, 18, 50)) .background_(color) .drawFunc = { Pen.stringAtPoint(ev.note.asString, 0@25, color: color.complementary); ...
-
... illStroke; } }; Unit } renderIO { IO{ this.render } } value { this.render } } + UserView { setDrawing { |drawing| ^IO{ { this.drawFunc = drawing; this.refresh }.defer } } } + Window { setDrawing { |drawing| ^IO{ { this.drawFunc = drawing; t ...