https://www.openprocessing.org/sketch/500702 I explained it poorly in the title but if you watch the animation go through you can see what i'm trying to show.

`void setup() { size(1920, 1080); background(100); } int period = 1; float at = 0; //Moves the circle to the right and increments the trig angles int offset = 0; void draw() { color pink = color(255, 102, 204); color pink2 = color(255, 102, 0); color pink3 = color(255, 0, 0); background(100); noFill(); stroke(20); rect(0, 0, 1919, 1079); loadPixels(); translate(map(at, 0, 2*PI, 0, 1920)-250, height/2); //Moves the circle to the right sets it to mid screen -250 to offset by radius of the circle ellipse(0, 0, 500, 500); //draws circle that the other circle follows ellipse(250*cos(at), 250*sin(-at), 15, 15); //Moving circle that follows above circle for (int i=0; i%1921<1920; i++) { set(i, (int)map(-1*sin(map(i, 0, 1919, 0, 2*PI)), -1, 1, 0, 500)+height/4, pink); //Draws a sin wave } at+=PI/144; //increments position of the circle and angle of trig functions // // //set(i,map(cos(map(i,0,1919,0,2*PI)),-1,1,0,1079),pink2); //set(i,map(tan(map(i,0,1919,0,2*PI)),-1,1,0,1079),pink3); //qset(i,map(pow(sin(map(i,0,1919,0,2*PI)),1000),-1,1,0,1079),pink); //} } `