Looking for a Math Stack Exchange Answer

This is for an HTML canvas project. Here’s the link: https://math.stackexchange.com/q/3388423/645727.

We are not an extension of Stack Overflow. If you have a question, please at least have the courtesy to paste it in here as well.