AB.world.newRun = function() { // Code for initial graphics drawing of objects. // Canvas setup: // ABWorld.init ( arguments ); // To draw on canvas: // var ctx = ABWorld.getContext ( type ); // type = "2d" or "webgl" }; AB.world.nextStep = function() { // Code for graphics re-drawing of objects. // To draw on canvas, see ABWorld.getContext as above. }; AB.world.endRun = function() { };