AtaTrkgl / numberphile-chaosgame

Recreation & the Extension of the behaviour shown in Numberphile's "Chaos Game"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chaos Game - Numberphile

This program is a recreation and a expansion of what was shown in Numberphile's Chaos Game - Numberphile. It starts by creating a polygon of the desired size. Then it creates a point on top of the first corner. After that, in each iteration the dot moves towards a randomly chosen corner by the distance between them divided by the "divisor". These random sets of moves creates really interesting patterns as shown in the video.

Controls:

  • Vertical Arrows: Change corner count of the polygon
  • Horizontal Arrows: Change the "divisor".

Here are Some Examples:

Triangle with a divisor of 2, forming a "Sierpiński triangle"

Gif of the program

Hexagon with a divisor of 3.

Gif of the program

About

Recreation & the Extension of the behaviour shown in Numberphile's "Chaos Game"


Languages

Language:Python 100.0%