You have upgraded to the 3rd Dimension. This shape is formed by 4 vertices in 3D space.
3D Algorithm
1. Take 4 vertices (pyramid shape).
2. Start at random point (x,y,z).
3. Roll a die.
4. Move halfway towards the target.
5. Plot the point in 3D space.
Dice Logic (Modulo 4):
Roll 1 or 5 → Top Vertex
Roll 2 or 6 → Left Vertex
Roll 3 → Right Vertex
Roll 4 → Front Vertex
Unlike the 2D version, we must redraw every point on every frame to handle camera rotation.