The Sierpinski Pyramid is a tetrahedron divided repeatedly into smaller tetrahedrons. It is a 3 dimensional fractal. Each 2 dimensional face of the pyramid is a Sierpinski Triangle. Press <M> key to switch to manual rotation using keys below. <Right Arrow> & <Left Arrow> keys to rotate about the Y axis. <Up Arrow> & <Down Arrow> keys to rotate about the X axis. <a> and <z> keys to rotate about the Z axis. Try key combinations to rotate about several axes simultaneously. Press <M> key again for automatic rotation.
3D Tutorial Studio: https://scratch.mit.edu/studios/5040029/ Sierpinski Triangle Studio: https://scratch.mit.edu/studios/3560462/ Sierpinski Triangle and Sierpinski Sieve on Wikipedia: https://en.wikipedia.org/wiki/Sierpinski_triangle This project uses recursion to repeatedly divide the largest tetrahedron into 4 smaller tetrahedrons. First the big tetrahedron splits into 4 tetrahedrons (green, red, blue and yellow), then each of these splits into 4 smaller tetrahedrons of the same colour. The smallest tetrahedrons are drawn at the last recursion level. The Sierpinski Triangle or Sierpinski Sieve is a triangle divided repeatedly into smaller triangles. It is a 2 dimensional fractal. Huge thanks to @TheLogFather for his "Faster Triangle Filler" https://scratch.mit.edu/projects/24828481/ Theory to rotate a 3D object from Wikipedia https://en.wikipedia.org/wiki/Rotation_matrix