Set "flip inside out?" to 0 for normal tesseract, or 1 to see it turn inside out continuously. Set shrink to a level you think has the best effect. Touch/click screen (hi, lo, left, right) to alter rotation.
It's a tesseract, 4D cube, or hypercube. Flipping inside out helps show that it's not just a smaller cube within a larger cube. Rather each cube face is itself an entire cube, which makes 8 cubes. Very recently CERN, Large Hadron Collider displayed an amazing robotic version of this. I started with a cube (shared that as "Cube Flips Inside Out"). Then added a second cube that operates using the same transformations, and connected it to the first cube. I had tried a tesseract a different way and shared that recently. But I had seen a kinetic kinetic sculpture of this in CERN Science Gateway, called "Round About Four Dimensions." Before that, I'd seen GIF animations on Wikipedia and Wikimedia Commons that flipped a tesseract in a similar way, but I wanted to program it from Scratch rather than just see animated frames, so that we could adjust it, and better understand it. This took much thinking and trial and error. Sine and Cosine function for smooth transitioning of cube faces' sizes and relative positions. Red and Green are opposite faces, they share coordinates in 2 of 3 axes. That's for both "inside" cube and "outside." I wanted a different color that connects the inside and outside cube, and chose yellow. This color coding seemed to help show what was happening.