-
... ect See also: Color , Gradient Creation / Class Methods *new (color1, color2, direction, steps) color1 - An instance of Color. color2 - An instance of Color. direction - \h or \v for horizontal and vertical respectively. Default value is \v ...
-
... ethods Examples Basic use ( var window; var slider; window = Window("2DSlider", Rect(100,100, 140 ,140)); window.front; slider = TabletSlider2D(window, Rect(20, 20,80, 80)) .x_(0.5).y_(1); slider.mouseDownAction = { arg view,x,y,pressure,ti ...
-
... enFn).load(s); s.sendMsg("/s_new", "simple", 2002, 1, 0); // w=SCWindow("Play", Rect(128, 64, 340, 360)); // w.view.decorator = FlowLayout(w.view.bounds); // SCButton(w, Rect(0,0, 75, 24)) // .action_({s.sendMsg("/n_free", 2002); s.quit; w. ...
-
... t(*a.collect { |x| VLayout(*x) }); ) ( w = Window().front; a = { { PopUpMenu(w, Rect(0, 0, 50, 20)).items_({"abcdefghijklmno".scramble.keep(3)} ! 7) } ! 10 } ! 10; w.layout = HLayout(*a.collect { |x| VLayout(*x) }); ) ( w = Window().front; ...
-
... t(*a.collect { |x| VLayout(*x) }); ) ( w = Window().front; a = { { PopUpMenu(w, Rect(0, 0, 50, 20)).items_({ "abcdefghijklmno".scramble.keep(3) } ! 7) } ! 10 } ! 10; w.layout = HLayout(*a.collect { |x| VLayout(*x) }); ) ( w = Window().front ...
-
... queID, argExtraArgs, argCanvasXY| var numIns = 2; var numOuts = 2; var bounds = Rect((Window.screenBounds.width - 450).rand, (Window.screenBounds.height - 400).rand, 450, 400); var name = "HrDIYSynth"; ^super.new(argParentApp, name, argIden ...
-
... eViewController; *initClass { StartUp.defer({ DrawIcon.drawFuncs.put( \lock, { |rect| var size = rect.width.min( rect.height ) * 0.8; var radius = size/6; var corners = [ -1 @ 0, -1 @ -2, 1 @ -2, 1 @ 0 ] * radius; Pen.use({ Pen.translate( * ...
-
... ); ); //Gui ( var window, button, fader; window = Window("Peter´s Code", Rect(100, 100, 400, 500)).front; button = Button(window, Rect(30, 380, 150, 100)); fader = Slider(window, Rect(30, 40, 50, 320)); fader.action_({|obj| var ...
-
... = Plprand(0.0, 1.0, inf); c = a.asStream.nextN(500); w = Window.new("Plprand", Rect(10, 10, 540, 800)); // plot the values c.plot(bounds: Rect(10, 10, 520, 380), discrete: true, parent: w); // a histogram of the values c.histo(500).plot(bo ...
-
... = Phprand(0.0, 1.0, inf); c = a.asStream.nextN(500); w = Window.new("Phprand", Rect(10, 10, 540, 800)); // plot the values c.plot(bounds: Rect(10, 10, 520, 380), discrete: true, parent: w); // a histogram of the values c.histo(500).plot(bo ...