Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/durocodes/chaos-game


https://github.com/durocodes/chaos-game

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# Chaos Game Simulation

Simple simulation of the chaos game using Python and Pygame.

You can input number of vertices, and the ratio of the distance between the current point and the vertex to the distance between the current point and the next vertex. The program optionally can calculate the optimal ratio using the formula [here](https://en.wikipedia.org/wiki/Chaos_game#Optimal_value_of_r_for_every_regular_polygon).

![Example Simulation](simulation.jpg "N=5, R=φ-1")