Cross myCross; Noise n = new Noise(); int i=0;//variable to increment void setup(){ noStroke(); size(500,300,P3D); background(0); framerate(24); myCross = new Cross(10,100,100); //n = new Blur(TWO_PI/mouseX, TWO_PI/mouseY); } void draw(){ float xPos=sin(i*.4)*50; xPos +=i; // reset position to left if object is too far right if (i>=width+10){ i=(-10); } n.blur(); float yPos=(cos(i*.4))*50+(height/2);//y position is sine function(which gives a value from -1 to 1)*20 for more effect + (half of height to center) myCross.x = xPos;// set position of point myCross.y = yPos; myCross.render(); i++;//increment variable i }