The Sierpiński triangle is a fractal attractive fixed set with the overall shape of an equilateral triangle, subdivided recursively into smaller equilateral triangles.
It is constructed by following these steps:
Take three points in a plane to form a triangle, you need not draw it.
Randomly select any point inside the triangle and consider that your current position.
Randomly select any one of the three vertex points.
Move half the distance from your current position to the selected vertex.
Plot the current position.
Repeat from step 3.
License
Distributed under the MIT License. See LICENSE for more information.