void setup() {//runs once when program first starts size(1000, 400); noStroke();//turns off stroke noFill();//turns off fill smooth();//turns on antialiasing } float angle = 0.0;//declares "angle" variable void draw() { //runs continuously frameRate(7);//sets the framerate PImage img; size(width,height);//sets size of image img = loadImage("water.png");//loads image image(img,0,0,width,height);//sets size of image and where it is positioned for (int x = 0; x <= width; x +=10) {//declaes variables, initiates for loop float y1 = height/2 + (sin(angle*.5) * height/2);//creates sin curve fill(95,212,255,17);//fills color of ellipses ellipse(x, y1, width/8, height/3);//draws ellipses within the sin curve angle += PI/4.0;//changes the frequency of the sin curve } }