-
... ("vector test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.2); //dim,grav,maxvel,damp //--objects { var mass= 1.0.rrand(4); //random mass ...
-
... ("vector test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.2); //dim,grav,maxvel,damp //--objects { var mass= 1.0.rrand(4); //random mass ...
-
... "repulsive test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 10); //dim,grav,maxvel,damp //--objects rep= RedObject(world, RedVector2D[100, 100], RedVector2D[0, 0], ...
-
... "repulsive test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 10); //dim,grav,maxvel,damp //--objects rep= RedObject(world, RedVector2D[100, 100], RedVector2D[0, 0], ...
-
... "attractor test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 5, 1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var mass= 0.5.rran ...
-
... s.extent * 0.5; Pen.translate(center.x, center.y); Pen.addArc(0@0, center.y * 0.98, 0, 2pi); // shape: Pen.color_(Color.white); Pen.width = 3; Pen.stroke; if (NTMI.usesMainFX) { var fontScaler = uv.bounds.height / 900 * 1.618; var mainIndex ...
-
... "attractor test2", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 5, 1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var mass= 0.5.rran ...
-
... freq, amp, pan = 0; var out, pluck, period, string; freq = freq * [0.99,1,2,0.98]; pluck = PinkNoise.ar(Decay.kr(Line.kr(1, 0, 0.05), 0.05)); period = freq.reciprocal; string = CombL.ar(pluck, period, period, 4); out = LeakDC.ar(LPF.a ...
-
... ("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.01); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; RedPendulum(wo ...
-
... ("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.01); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; RedPendulum(wo ...