How to hack 3d using 2d using simple graphics API to display a cuboid?

@senocular’s content from a few decades ago is perfect for this: kirupa.com - Exploring 3D in Flash (:exclamation_question_mark:)

The general idea is to have a consideration for the z axis that translates everything into x and y coordinations. For a more modern version of how to do this, this article may help: