-
... n = val . visible . visible = flag Examples ( w = Window.new("EZScroller test", Rect(100, 400, 200, 100)).front; // 5 displays v = { |i| DragBoth.new(w, Rect(0, i * 20, 100, 20)) }.dup(5); // 12 items a = (1..12); e = EZScroller(w, Rect(100 ...
-
... ethods Instance Methods . makeWindow As simple as possible. Arguments: bounds A Rect that defines the position and size of the window. rate A Float for changing playback rate of animated GIFs. E.g. 0.5 will play at half speed. interpolation ...
-
... ger, and anything else as code on an EZText. First examples: w = Window("test", Rect(20, 820, 400, 100)).front; w.addFlowLayout; ~pv = ParamView(w, Rect(20, 20, 360, 20)); ~pv2 = ParamView(w, Rect(20, 20, 360, 40)); // not working properly ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... (out, Pan2.ar(z*e, pan)); }).add; s.sync; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.1); //dim,gr ...
-
... 300, height= 300, w, world, sys; //--world w= RedWindow("particlesystem test", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector2D[width, height], 0, 20, -0.25); //dim,grav,maxvel,damp //--system sys= RedParticleSystem.new; / ...
-
... 300, height= 300, w, wgrav, world, n= 80; //--world w= RedWindow("vector test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.2); //dim,grav ...