-
... pe[0])*inner, Point(1, cogInsideShape[1])*inner ]*radius; Pen.strokeOval(Rect.aboutPoint(Point(0, 0), center*radius, center*radius)); numCogs.do{ Pen.moveTo(cogs[0]); Pen.lineTo(cogs[1]); cogs= cogs.collect{|p| p.rotate(pi ...
-
... var canv, synth, short, recv; var longSize, long, longPos; w = Window("Ring", Rect(100, 100, size, size)); w.front; // Short-term loudness meter level short = 0.0; // Size of the long-term loudness history. Increase for a smoother d ...
-
... sound).end(1) }; u.background = Color.blue(0.5); u.animate = true; k = Rect(100, 100, 50, 50); u.drawFunc = { var osc = Ndef(\osc).bus.getSynchronous * 0.5 + 0.5; Pen.strokeColor = Color.blue; Pen.addOval(k); Pen ...
-
... 1.5))); // input range to adjust threshold, curve factor for contrast: 0-2 }), Rect(0, 0, image.width, image.height)); ~image.free; ~image = image; ) // 5. display image ~image.plot;
-
... = { |i=0, gate=0| x[i].set(\g, gate) }; w = Window("self ear-training", Rect(200, 200, 583, 136)); w.front; w.onClose_{ { |i| x[i].free }!n }; b = { |parent, label| Button(parent, 30@30) .states_([ [label], [labe ...
-
... sc3.5 qt gui ( var size = 5; var side = 108; var w = Window('hypno-sliderz', Rect(50,50,size*(side+5),size*(side+5))).front; w.addFlowLayout(); ~sliders = Array.fill(size.squared, { Slider2D( w.view,side@side ) }); ~nodes = Array.fill ...
-
... "); println(firstValue + " " + secondValue + " " + thirdValue); // rect(random(width),random(height),random(10),random(10)); }
-
... putFileName).postln; }); }; }; }; window = Window("File Merger", Rect.aboutPoint(Window.screenBounds.center, 200, 50)).front; // 1a. Select a folder selectButton = Button() .states_([["1a. Select a folder"]]) .action_ { ...
-
... ostln; labeltext = msg[2]; } )}, '/gui'); w = Window(bounds: Rect(0, 0, width, height)); v = UserView(w, w.view.bounds); v.animate = true; v.background = colors['background']; label = StaticText(v, Rect(40, ...
-
... @400; // where to put the gui window w = Window.new("CloudGenMiniMetro", Rect.fromPoints(posPoint, (posPoint + (400@300)))).front; w.view.decorator_(FlowLayout(w.bounds.copy.moveTo(0, 0))); w.view.decorator.nextLine; // a ...