Press Green Flag and watch. This is a 3D Cube shadow in a 2D plane with perspective and camera rotation. This Cube is made with 8 vertices and 12 triangles. You can modify the code in "Setup" to change the shape. INFO : - To create a triangle you need to specify the vertex id, and an RGB color in hexadecimal. - And a vertex is composed of XYZ coordinates.
This was made by me and the help of wikipedia : - https://en.wikipedia.org/wiki/Matrix_multiplication - https://en.wikipedia.org/wiki/3D_projection - https://en.wikipedia.org/wiki/Cross_product - https://en.wikipedia.org/wiki/Dot_product