-
... width= 300, height= 300, wgrav; ~n= 8; //--world ~win= RedWindow("boids test3", Rect(128, 164, width, height)).front; wgrav= RedVector2D[0, 0]; ~world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp //--objects ...
-
... a = Pwhite(0.0, 1.0, inf); c = a.asStream.nextN(500); w = Window.new("Pwhite", 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 ...
-
... width= 300, height= 300, wgrav; ~n= 8; //--world ~win= RedWindow("boids test3", Rect(128, 164, width, height)).front; wgrav= RedVector2D[0, 0]; ~world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp //--objects ...
-
... to KtlLoop // and sets its output object ( q.win = Window("Influx(\x) control", Rect(5, 540, 320, 210)).front; q.win.addFlowLayout; q.comp1 = CompositeView(q.win, q.win.bounds.width_(120)); q.comp1.addFlowLayout; StaticText(q.comp1, Rect(0, ...
-
... Window("chanTest").front; q.chantest.win.addFlowLayout; Button(q.chantest.win, Rect(0,0,120,30)).states_([["STOP"]]) .action_({ q.chantest.pink.end; q.chantest.task.stop; }); q.chantest.pink.postln; q.chantest.butz = (1..8).collect { |i| B ...
-
... 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 . label The label. Default value is nil . If ni ...
-
... nds); height = max(b.height + 6, GUI.skin.buttonHeight); },{ if(bounds.isKindOf(Rect),{ // width x height width = bounds.width; height = bounds.height; },{ # width, height = bounds.asArray; width = width ?? {(string.bounds(font).width + 6)} ...
-
... s = false | var win, view, colors, chans, max, min, valRange; bounds = bounds ? Rect(20, 0, 500, 500); background = background ? Color(0.1,0,0.1,1); max = this.collect(_.maxItem).maxItem; min = this.collect(_.minItem).minItem; valRange = ma ...
-
... ////////////////////////////////////////////// mixwin = Window("BFormat Mixer", Rect(200, 512, 920, 800)); play = Button(mixwin, Rect(10, 630, 100, 20)) .states_([ ["play", Color.black, Color(0.5, 0.9, 0.5, 0.5)], ["stop", Color.black, Colo ...
-
... n= width/n, hn= height/n; //--world w= RedWindow("discrete world - explosions", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector2D[n, n], RedVector2D[0, 0.98], 3, 0.5); //dim,grav,maxvel,damp //--objects rep= RedObject(nil, R ...