import toxi.geom.*; import toxi.math.*; import toxi.math.noise.*; import toxi.physics.*; import toxi.physics.behaviors.*; ///////////////////////////////////////////////////////////////////////////////////// //Define Global Variables--------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////////// World myWorld; //Variable for World int wormCount = 200; ///////////////////////////////////////////////////////////////////////////////////// //Define Global Setup------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////////// void setup() { //frameRate(29); size(1920,1080,P2D); smooth(8); background(0); myWorld = new World(wormCount); } ///////////////////////////////////////////////////////////////////////////////////// //Define Global Draw--------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////////// void draw() { background(0); myWorld.update(); //Call update function from WorldClass } Update