Pond myPond; void setup(){ size(500,300,P3D); frameRate(60); //Create a pond with Pond(width, height, offset X, offset Y, grid spacing) myPond = new Pond(width, height, 5f, 5f, 10); } void draw(){ background(100); myPond.render(); } void mouseDragged(){ //Create ripple with ripple(x position, y position, strength); myPond.ripple(mouseX, mouseY, 500); } void mousePressed(){ myPond.ripple(mouseX, mouseY, 500); if(mouseButton == RIGHT) myPond.guide = !myPond.guide; }