Controls: drag with mouse to rotate up + down: Rotate along X axis right + left: Rotate along Y axis A + Z: Rotate along Z Axis Drapeau vert et voila ... a rotating 3D Tetrahedron. The 3D rotation code only calculates the positions of the 4 vertices of the tetrahedron. The patterns are then drawn on the triangular faces by calculating intermediate point positions as fractions of the distances between these vertices.
This is one of my more lazier projects.