View the simulation here: https://www.desmos.com/calculator/igxlrkvpyp All instructions are in the graph.
I had the project mostly done for a while but hadn't completed it, being obstructed by a single problem that I couldn't quite figure out how to fix. Eventually, I decided to create a Math Stack Exchange account to ask the question, and it worked! So here is the completed project, with a huge thanks to "David K" (https://math.stackexchange.com/users/139123/david-k) on Math Stack Exchange for answering my question and solving the problem.