I was chatting in my Discord with Aphitorite on GitHub, and they actually dug into your "disparity curve" formula a bit. Some interesting stuff was discovered, and we wanted to share it with you!
So first of all, we were talking about my modified version of your formula from my fork that's able to handle arbitrary array lengths, which is the following:
Yeah, I know... I didn't refactor it after changing it around, and the line of code it takes up is an absolute mess. But it turns out that you had written up a partial triangle wave function (without using trig functions)!
I was chatting in my Discord with Aphitorite on GitHub, and they actually dug into your "disparity curve" formula a bit. Some interesting stuff was discovered, and we wanted to share it with you!
So first of all, we were talking about my modified version of your formula from my fork that's able to handle arbitrary array lengths, which is the following:
Yeah, I know... I didn't refactor it after changing it around, and the line of code it takes up is an absolute mess. But it turns out that you had written up a partial triangle wave function (without using trig functions)!
https://cdn.discordapp.com/attachments/592103638034415647/733325936417570926/SharedScreenshot.jpg
That's why the peaks of the disparity circle visual are always jagged! You can especially see that here:
Your original formula: https://cdn.discordapp.com/attachments/592103638034415647/733197874434932807/Screenshot_516.png
versus Aphitorite's new cosine wave formula: https://cdn.discordapp.com/attachments/592103638034415647/733197892264656946/Screenshot_515.png
Their new cosine wave formula is as follows:
I personally found this super fascinating; hope this was interesting for you too!