-
... 4, 101, 113, 0, 0, 0, 0, 0, 0, 7, -87 ].parseOSC; // OSC bundle: Int8Array[ 35, 98, 117, 110, 100, 108, 101, 0, 0, 0, 0, 0, 25, -103, -103, -103, 0, 0, 0, 48, 47, 115, 95, 110, 101, 119, 0, 0, 44, 115, 105, 105, 105, 115, 105, 0, 100, 101, ...
-
... ethod. Inherited instance methods Examples b= 1; //target a= RedOnePole(0.99, 0.98); //0.99= upwards lag, 0.98= downwards b= a.onepole(1) b= a.onepole(1) b= a.onepole(1) b= a.onepole(1) b= a.onepole(1) //--smoothing out an array of 0 and 1 ...
-
... ("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], ...
-
... "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 ...
-
... ("pendulum test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.02); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width/2, height/2]; RedPendulum(wor ...
-
... ("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[30.rrand(width-30), 30.rrand(height ...