-
... (out, Pan2.ar(z*e, pan)); }).add; s.sync; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.1); //dim,grav,maxvel,damp //worl ...
-
... , 200]) w.background= Color.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(175.rand@175.rand, 50, 50))} w.play //start drawing w.stop ( //mouse control w.draw{ var radius= 100.rand; Pen.fillColor= Color.blue(0.5, radius ...
-
... ference in responsiveness ( var sl, uv, j = 0, speedlim; w = Window("SpeedLim", Rect.aboutPoint(Window.screenBounds.center, 200, 200) ).front; w.layout = VLayout( sl = Slider().orientation_(\horizontal).maxHeight_(30), uv = UserView().backg ...
-
... e maxTotal= 1000; //also decides when to stop //--world w= RedWindow("growth2", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0.1, 0]; //world xy gravity world= RedWorld(RedVector2D[width, height], wgrav ...
-
... ime maxTotal= 600; //also decides when to stop //--world w= RedWindow("growth", Rect(128, 64, width, height)).front; w.background= Color.white; wgrav= RedVector2D[0, 0]; //world xy gravity world= RedWorld(RedVector2D[width, height], wgrav, ...
-
... , w, world, n= 12; //--world w= RedWindow("phase coupled oscillators - clocks", Rect(0, 64, width, height)).front; world= RedWorld3(RedVector2D[width, height], nil, inf, 0); //dim,grav,maxvel,damp //--init objects n.do{|i| var x= (sin(i/n*2 ...
-
... ta=basedata.copy; i = SCImage.new(windowx@windowy); w = SCWindow.new("SCImage", Rect(0, 100, windowx+10, windowy+10)).front; w.onClose_({ t.stop; i.free; }); // free the image when the window is closed userview = SCUserView(w, w.view.bounds ...
-
... , 200]) w.background= Color.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(175.rand@175.rand, 50, 50))} w.play //start drawing w.stop ( //mouse control w.draw{ var radius= 100.rand; Pen.fillColor= Color.blue(0.5, radius ...
-
... com/physics/ ( var width= 400, height= 400; var win= Window("Random Arboretum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var node_size= 10/2; var edge_length= 20; var edge_strength= 0.2; var ...
-
... hods FlowLayout. new ( bounds , margin , gap ) Arguments: bounds An instance of Rect . Normally set to the parent.bounds . margin An instance of Point . The horizontal and vertical inner margins, within which the parent's subviews are place ...