Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/durocodes/chaos-game
https://github.com/durocodes/chaos-game
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/durocodes/chaos-game
- Owner: DuroCodes
- Created: 2024-03-26T20:21:46.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-28T18:19:05.000Z (9 months ago)
- Last Synced: 2024-03-28T19:43:50.484Z (9 months ago)
- Language: Python
- Size: 211 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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")