This was done without much effort on my part.
You can tap the arrows to twist the cube.
4 sides of the cube can be viewed.
It's easy to add the same code to twist the cube vertically so all 6 sides can be viewed.
This is not a 2.5D clone stack or a pen drawing or pen wire frame continuously being deleted and drawn like what is seen when you search "Cube"
anyone who wants to use this code or learn from it is welcome.
@oio you can see it's a simple illusion to make.
If I put more effort in I could do this with just 2 squares to have 6 sides able to be viewed.