-
... 300, height= 300, w, wgrav, world, n= 10; //--world w= RedWindow("boids test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 10, 0.1); //dim,grav,maxvel,damp world= Red ...
-
... w with auto resize l.gui; // place it on a window w = Window.new.front; l.gui(w,Rect(0,0,500,200),[10,2000,\exp],[0,48]); // place it on a UserView w = Window.new.front; u = UserView(w,Rect(0,0,500,200)); u.drawFunc = { Pen.stringAtPoint("C ...
-
... 15, wx= width/n, hy= height/n; //--world w= RedWindow("discrete world - 2d ca", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[n, n]); //dim,grav,maxvel,damp //--objects {|x| {|y| var loc= RedVector[x, y]; RedAgent(world, l ...
-
... 15, wx= width/n, hy= height/n; //--world w= RedWindow("discrete world - 2d ca", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector[n, n]); //dim,grav,maxvel,damp //--objects {|x| {|y| var loc= RedVector[x, y]; RedAgent(world, l ...
-
... story, MiniIDEJIT, MiniIDELauncher, MiniIDEHelp]}); if(bounds == nil, {bounds = Rect(0,0,512,805)}); if(bounds.class == Point, {bounds = bounds.asRect}); //Convert Point to Rect point = Point(bounds.width, bounds.height); //WINDOW window = ...
-
... llocated and stops the FFT analysis synth. So: ( w = SCWindow ( "My Analyzer" , Rect (0, 0, 511, 300)); f = SCFreqScope (w, w.view.bounds); w.onClose_({ f.kill }); // YOU MUST HAVE THIS w.front; ) Creation / Class Methods *new (parent, boun ...
-
... m -r *" command (in terminal) carefully) // BE SURE THAT YOU"RE IN THE PROPER DIRECTORY BEFORE RUNNING IT // BECAUSE "rm -r *" deletes ALL_FILES in a directory /* ----- ----- ----- */ ////////////////////// /* ----- ----- ----- */ // PRELIM ...
-
... see <http://www.gnu.org/licenses/>. */ UScoreEventView : UEventView { ifIsInsideRect{ |mousePos, yesAction, noAction| if(rect.containsPoint(mousePos)) { yesAction.value; } { noAction.value; } } mouseDownEvent{ |mousePos,scaledUserView,shift ...
-
... ee <http://www.gnu.org/licenses/>. */ UVoicerEventView : UEventView { ifIsInsideRect{ |mousePos, yesAction, noAction| if(rect.containsPoint(mousePos)) { yesAction.value; } { noAction.value; } } mouseDownEvent{ |mousePos,scaledUserView,shift ...
-
... see <http://www.gnu.org/licenses/>. */ UScoreEventView : UEventView { ifIsInsideRect{ |mousePos, yesAction, noAction| if(rect.containsPoint(mousePos)) { yesAction.value; } { noAction.value; } } mouseDownEvent{ |mousePos,scaledUserView,shift ...