Use the slider to switch between the square and the cube. Press space to switch between manual and automatic rotation. (Move mouse to rotate manually.)
I want to try and create a visualization of a 4D cube, but I realized that I have like no idea how to do that (especially in the way that I want), so I figured it'd be best to work my way up to it, starting with 2D and 3D. Orthographic projection because I didn't want to deal with figuring out how FOV works. There are definitely better ways to do rotations (and I'll probably have to look into them for 4D), but I decided to make this after midnight so I don't feel like figuring that out right now.