-
... .0, 1.0, 0.1, 0.1, inf); c = a.asStream.nextN(500); w = Window.new("Pbetarand", 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 ...
-
... this when using WsLayout. Arguments: wsWindow An instance of WsWindow bounds A Rect specifying the size of the widget. NOTE: Currently a relative measurement is used: 1 for full window width, 1 for full window height, e.g. Rect(0, 0, 1, 1) ...
-
... ; a = Ppoisson(1.0, inf); c = a.asStream.nextN(500); w = Window.new("Ppoisson", 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 ...
-
... = Pcauchy(0.0, 1.0, inf); c = a.asStream.nextN(500); w = Window.new("Pcauchy", 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 ...
-
... ndividual tabs, setting their individual instance variables. NOTE: You never dierectly create TabbedViewTab instances, but rather use TabbedView2.add to add tabs. Many instance variables for TabbedView, are now (arrays of) default values fo ...
-
... makeWindow Creates a Window and draws. Mainly for testing. Arguments: bounds a Rect that define window size and position background a Color . drawFunc . matrices . n Inherited instance methods Examples //--f is drawFunc, m is matrices, n i ...
-
... a = Pgauss(0.0, 100, inf); c = a.asStream.nextN(500); w = Window.new("Pgauss", 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 ...
-
... eight= 300, w, u, a, persistance= 0.75, octaves= 8; w= Window("perlin test 1d", Rect(128, 64, width, height), false); u= UserView(w, Rect(0, 0, width, height)); u.background= Color.black; a= RedPerlin.new; u.drawFunc= { Pen.strokeColor= Col ...
-
... in which you can use the Pen class to draw graphical primitives, such as lines, rectangles, ellipses, curves, and also text. This class offers convenient mechanisms for creating animations, that is, to automatically redraw itself in regular ...
-
... ield(0.0,1.0, 60.collect{ [RealVector.rand(2),rrand(0.4,1.0),0.05] }) a.plotUni(Rect(0,0,1,1),400,0.2); a.getRange; a.value(RealVector[0.2,0.7]); BlobField(0.0,1.0,[[RealVector[0.5,0.5],1,0.05]]).plotUni(Rect(0,0,1,1),400,0.2); BlobField(0. ...