For this I borrowed some code I found online and tried to modify it a little bit to meet my needs. Here's my edited version of the code:
However, I don't know how to create the second copy of the Sierpinski triangle in the same
minipagedoes not work for my purpose). I tried to create a copy of the code inside the
tikzpictureenvironment and then modify some parameters but it didn't work. This is the code of that attempt:
So my question would be: how can I modify the code to obtain the two copies of the Sierpinki triangles?
Note: The code was taken from https://www.overleaf.com/latex/examples/the-first-six-levels-of-the-sierpinski-triangle/gqwmqrhmphxv#.VzOB36GVvvx and was created by Jake on TeX SE.