/Sierpinski_Triangle

Generating Sierpiński triangle by almost random points

Primary LanguagePython

Sierpiński triangle

Drawing of sierpiński triangle with given number of attempts.

What is the algorithm?

There are 3 points at the beginning which have equal distance between them. At first, a point is randomly added. Then at each step, one of the 3 main points is chosen randomly and a point is added between (middle) the lastly added point and this chosen point.