Rotating hypercubes are a dime a dozen but here we'll take a look at adding a little ASCII art twist to the hypnotic dance of a 4d cube projected onto a 2d screen.
01:01 Dependencies
03:20 Main loop
08:40 Matrix math
19:50 Running tesseract
23:30 ASCII tweaking
Code for this video:
https://pastebin.com/kAN6J3eF
See the Coding Train for a deeper dive into the math:
• Coding Challenge #113: 4D Hypercube (aka "...
A lot of the code here comes from Auctux
• Python 4D hypercube (Tesseract)
#hypercube #python #ascii #matrix #pythontutorial