-
//double pendulum //https://www.myphysicslab.com/pendulum/double-pendulum-en.html ( var width= 300, height= 300, w, wgrav, world, ploc, angularAccel1, angularAccel2; //--world w= RedWindow("double pendulum", Rect(128, 64, width, height)).fr ...
-
... ************* stereo or mono. this should be set from ixiQuarks main window on open buffNum = 8; buffers = Array.fill(buffNum, {0}); // buffers buffLengths = Array.fill(buffNum, {1}); frozenBuffers = Array.fill(buffNum, {0}); skipLengths = ...
-
... iew = nUFOView; nUFOView.drawFunc_({ |uv| var bounds = uv.bounds.extent.asRect; Pen.addRect(bounds).color_(Color.white).stroke; Pen.addRect(bounds.copy.width_(bounds.width * (NTMI.nUFO.bat.percent ? 0 * 0.01))); Pen.color_(Color.green(0.75, ...
-
... radius ); } asRect { ^Rect( this.left, this.top, this.width, this.height ); } asPenFunction { ^{ Pen.roundedRect( this.asRect, radius ); } } stroke { |penClass| penClass = penClass ?? { GUI.pen }; this.asPenFunction( penClass ).value; penCl ...
-
... endToAll( '/endTrack' , participation.forum.myName);\ \);\ \ w.drawHook_\\ GUI .pen.use \ \ GUI .pen.width = 1;\ GUI .pen.beginPath;\ \ tmppoints.do\ |points| \ points.do \ |p, i| \ if(i == 0)\\ GUI .pen.moveTo(p);\ \\\ GUI .pen.lineTo(p);\ ...
-
... 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, ...
-
... 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 ...