M5 Tutorial 2: Chaos game
Program starts with the shape of a triangle with three vertices A, B, and C and an initial random point (Cat). It then gradually adds more points to the screen to create a final image. Each additional point in the sequence will be in the middle between the point added previously and one of the vertices. In each iteration, it'll “roll a die” (generates a random number) to randomly select a vertex. It runs iterations (repetitions of this procedure) till the Stop flag clicked.