-
... dow.new("amplitude threshold tester", Rect(600, 250, 950, 220)).front; w.view.background_(Color.gray(0.75)); w.onClose_({s.freeAll}); ~numberBox = NumberBox.new(w, Rect(180, 25, 450, 120)) .font_(Font("Helvetica", 108)) .valu ...
-
... l; "Amplitude Modulation window closed.".postln; "".postln}; win.front; win.background = Color.grey; win.alpha = 0.95; // Carrier Frequency Knob carrSpec = ControlSpec(20, 20000, 'exp', 0, 440, " Hz"); carrFreqKnob = Knob.new( ...
-
... ndow("Control Panel", Rect.new(470,300,502,235),resizable:true, border:true) .background_(Color.grey(0.05)).front .alwaysOnTop = true; w.view.decorator_(FlowLayout(w.bounds,4@4, 4@4)); ~topPanel = UserView(w, 494@45).background_(C ...
-
... }; a = 15.collect{ var c = CompositeView(view,80@80); Slider2D( c,80@80 ).background_( Color.rand ).resize_(5); c }; }; w.front; w.bounds = Rect(w.bounds.left, w.bounds.top,z.used.width,z.used.height) ) // or individu ...
-
... h_slider.refresh; sv_slider.refresh; }; // Hue Slider setup h_slider.background_( Color.black ); h_slider.drawFunc_( { | view | Pen.width = 1; ( view.bounds.height - ( margin * 2 ) ).do( { | index | Pen.strokeColor_( ...
-
... demo", Rect(50, 50, 610, 640), false); w.front; windowColor = Color.white; w.background = windowColor; x = CompositeView.new(w, Rect(10, 10, 500, 200)).background_(windowColor); y = CompositeView.new(w, Rect(10, 220, 500, 200)).backg ...
-
... ll; win = Window.new("", Window.screenBounds, false, false).front; win.view.background_(Color.gray(0.1)); win.view.keyDownAction_({ arg view, char, mod, uni; //esc to abort & close window if(uni == 27, {~animate.stop;~mainR ...
-
... j) > i).if({ ez.setColors(knobColors: idxKnobColors[j%2]); ez.setColors(background: bgColors [j%2]); }, { ez.setColors(knobColors: idxKnobColors[j%2 + 2]); ez.setColors(background: bgColors [j%2 + 2]); }); ...
-
... ), false, false) .alwaysOnTop_(true); u = UserView(win, win.view.bounds) .background_(Color.gray(0.1)); //game over & score box, only visible when you crash //(score = snake body size) deadbox = StaticText(win, Rect( win.bounds ...
-
... float[] fftArray; void setup() { size(1280, 768); frameRate(60); background(0); noSmooth(); fftArray= new float[BUFFERSIZE2]; for (int i= 0; i<BUFFERSIZE2; i++) { fftArray[i]= 0.0; } //--network Osc ...