While most of this code is original, I DO NOT own the code for visualizing the Rubik's Cube in a 3D space The code for camera and position setup, visualization, and 3D matrix maneuvering was done by Daniel Shiffman.
His Lines of Code:
Directory: 3DRubiksCubeSim
Class Rubik's Cube: Lines: 17-83, 145-162
Class Cubie: All
Class Face: All
3D Cube Visualization in Processing Repository