After watching 3blue1brown’s video, I decided to make my own version using p5.js, which I can put it on my website.
This is all based on this simple equation, where you can get the detail in video through link uphead.
Feel free to try yourself, and you can find the source
code at my github site.
link to the interactive interface (English)
link to the interactive interface (Chinese)
Here is the core code for determining vectors in different levels: