Using trigonometry, I managed to render a 3D cube wireframe. To see the tutorial on how to replicate, click see inside. (not very explain-y...)
UPDATE: Fixed the cube drawing.