-
XiiColors { classvar <focus= 0.98, <unfocus= 0.93; *darkgreen { arg alpha=255; ^Color.new255(103, 148, 103, alpha:alpha); } *lightgreen { ^Color.new255(155, 205, 155); } *selectioncolor { ^Color.new255(105, 185, 125); } *ixiorange { ^Color. ...
-
... ? {RedVector2D[300, 300]}, //2d world for defaults gravity ?? {RedVector2D[0, 0.98]}, maxVel ? 10, damping ? 0.25 ).initRedWorld; } initRedWorld { objects= []; RedUniverse.add(this); //add world to universe this.prInitSurroundings; } add {| ...
-
... ("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], ...
-
... 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 ...
-
... ("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 ...
-
... "attractor test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--objects att= RedObject(world, RedVector2D[100, 100], RedVector2D[ ...
-
... ("vector test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.4, 0.98]; //world xy gravity world= RedWorld3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[250, 10]; //ini ...
-
... n[\func] = { |countDown, args| var freq = args[0] ? 5000; freq = freq * rrand(0.98, 1.02); (instrument: \xxy, freq: freq * [1, 1.2, 1.5], sustain: 0.03).play; }; // this listens to incoming network messages with the name \chain: q.resp = OS ...