-
... herited instance methods Examples ( var w = Window().front; var c = CheckBox(w, Rect(10, 10, 50, 50), "test"); c.action_{ |v| v.value.postln }; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/CheckBox.schelp link::C ...
-
... window = GUI .window.new( "colors" ).front; text = GUI .staticText.new( window, Rect ( 120, 10, 150, 20 ) ); button = GUI .button.new( window, Rect ( 10, 10, 100, 20 ) ) .states_( [[ "new color" ]] ) .action_( { key = table.keys.choose; win ...
-
... take e byte! Energy increases. 2. Age is increased by 1. 3. Determine ypur direction Are you hungry? Find food. Not hungry? Find someone to play with 4. take the step. Energy decreases by 1. 5. as 1. 6. Is there another beastie wh ...
-
... n. Inherited instance methods Examples ( w = Window("mov").front; b = Button(w, Rect(0, 0, 150, 20)) .states_([["pick a file"]]) .action_({ File.openDialog("", { |path| m.path_(path) }) }); m = MovieView(w, Rect(0,20,360, 260)); ) // random ...
-
... om a ui! var sf; var w,slider; var owncutfunc,ownrepfunc; w = SCWindow("panel", Rect.new(128, 64, 186, 90)); slider=DDSlider( w, Rect.new(32, 28, 128, 40), "which cut set", 0, 1, 'linear', 1, 0); w.front; owncutfunc= { arg pos,currlength; / ...
-
... e it conveniently on the screen if the bounds are a Point . If the bounds are a Rect , then the Rect determines the window bounds. bounds - An instance of Rect or Point . Default value is 160@20 . Make certain to choose bounds that are larg ...
-
... ({ arg th; model.tempo = th.value; model.changed; }); a = SoundFileView(layout, Rect(0,0, layout.bounds.width, 60)); this.read; layout.removeOnClose(Updater(model,{ // in case the file gets swapped pathLabel.label_(model.fileName).refresh; ...
-
... ({ arg th; model.tempo = th.value; model.changed; }); a = SoundFileView(layout, Rect(0, 0, layout.bounds.width, 60)); this.read; layout.removeOnClose(Updater(model, { // in case the file gets swapped pathLabel.label_(model.fileName).refresh ...
-
... ip both - this is default). ( var center = 0.5, ctlCenter; w = Window ("bilin", Rect(100, 100, 200, 100)).front; a = Slider (w, Rect (20, 20, 150, 20)).value_(0.5); b = Slider (w, Rect (20, 45, 150, 20)).value_(0.5); b.action = { center = b ...
-
... set * zoom, y / n + offset * zoom) } ! n } ! n; w = Window("Julia set", bounds: Rect(200, 200, xs, ys)).front; w.view.background_(Color.black); w.drawFunc = { n.do { |x| n.do { |y| var z = field[x][y]; z = f.(z); field[x][y] = z; Pen.color ...