Draw the Serpinski Triangle

1

1

For today's fractal challenge, draw at least 5 iterations of Sierpinski's triangle! (Shown below is Sierpinski's trinagle)

enter image description here

The resolution of the image must be sufficent that the smallest triangles are at least one pixel in size, and all triangles should be approximately equillateral - pixel art that draws a right-triangle variant will be appreciated, but not accepted. Shortest code in bytes wins!

J. Antonio Perez

Posted 2016-11-18T17:29:24.037

Reputation: 1 480

Question was closed 2016-11-18T17:34:41.243

No answers