-
... nder2D; }); o.addForce(~world.gravity); o.update; ~world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/~n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; ~win.play; CmdPeriod.doOnce({~win.close}); ) //--livecoding swapping wor ...
-
... nder2D; }); o.addForce(~world.gravity); o.update; ~world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/~n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; ~win.play; CmdPeriod.doOnce({~win.close}); ) //--livecoding swapping wor ...
-
... ^wfsPath } value_ { |newWFSPath| if( wfsPath != newWFSPath ) { wfsPath.removeDependant( this ); wfsPath = newWFSPath; wfsPath.addDependant( this ); if( editor.notNil && { editor.isClosed.not }) { editor.object = wfsPath; }; }; this.update; ...
-
... leBoundaryCollisions.value(b); handleBoundaryCollisions.value(c); physics.tick; Pen.color= Color.black; Pen.strokeOval(Rect.aboutPoint(Point(mouse.position.x, mouse.position.y), 17.5, 17.5)); Pen.fillOval(Rect.aboutPoint(Point(b.position.x, ...
-
... leBoundaryCollisions.value(b); handleBoundaryCollisions.value(c); physics.tick; Pen.color= Color.black; Pen.strokeOval(Rect.aboutPoint(Point(mouse.position.x, mouse.position.y), 17.5, 17.5)); Pen.fillOval(Rect.aboutPoint(Point(b.position.x, ...
-
... ettingsView,numGridLinesPerUnit,vhorzGridDist,selGridLineCoord,loopStartNode,loopEndNode,timeIncr,timeStep,uI,breakPointCoords,curvePointCoords,<>selectedBreakPoint,breakPointTime,envGrid,envGridHeight,<action; classvar unitStep; *initClass ...
-
... }.defer}); } close { if(mainView.notNil, {mainView.close}, {"There is no view open for GameLoopVisualiser".error}); } clear{ if(mainView.notNil, {mainView.close}); instance = nil; } /* Private */ calculateMeterUnit{ sceneWidth = entManager ...
-
... 2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--loop ~win.draw{ Pen.strokeColor= Color.white; ~world.objects.do{|o| o.addForce(o.world.gravity); o.update; o.world.contain(o); //--render Pen.strokeRect(Rect.aboutRedObject2D(o ...
-
... 2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--loop ~win.draw{ Pen.strokeColor= Color.white; ~world.objects.do{|o| o.addForce(o.world.gravity); o.update; o.world.contain(o); //--render Pen.strokeRect(Rect.aboutRedObject2D(o ...
-
... ds Inherited class methods Instance methods draw play stop resize background isOpen mouse isPlaying userView animate frame frameRate Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedQWindow Extensi ...