Rangoli Patterns Computer

Rangoli Patterns Computer

Rangoli Patterns Computer

This article provides the listing for a simple computer program to generate the Sierpinski triangle using an algorithm devised by Michael Barnsley (Fractals Everywhere, Elsevier, 1988), which he coined The Chaos Game.

The program is written in Visual Basic for Applications and is easy to copy and paste straight into an Access 2007 report module. The report is then run using Print Preview to generate the pattern as a series of dots, ready for printing.