The function f was derived from the function of an ellipse. You can change the length and height. The mathematics was done by @qwertzuioppel. You can use this project yourself with credit