The Chaos Game is a fascinating method for generating fractals, intricate patterns that repeat infinitely. This repository contains an implementation of the Chaos Game algorithm, allowing you to explore and create mesmerizing fractal shapes.
The Chaos Game algorithm follows these steps:
-
Shape Definition: Specify the number of sides for the shape you want to generate a fractal for.
-
Random Point Selection: Randomly select two points within the shape.
-
Iteration Process: At each iteration, calculate the midpoint between the current position and one of the randomly selected points.
-
Repeat: Repeat the iteration process multiple times to visualize the complex fractal pattern.
The Chaos Game implementation in this repository includes several features for customization:
-
Division Factor: Adjust the division factor to control the speed and complexity of the fractal generation process.
-
Number of Iterations: Specify the number of iterations to determine the level of detail in the fractal.
-
Color: Customize the color scheme of the generated fractal to enhance visualization.
Check out this YouTube video for a demonstration of the Chaos Game algorithm in action.
To get started with the Chaos Game, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run the Chaos Game program with your preferred settings.
- Explore the mesmerizing fractal patterns generated by the algorithm.
Contributions to improve and expand the Chaos Game implementation are welcome! Feel free to submit pull requests with enhancements or bug fixes.
- Inspiration: The Chaos Game algorithm was inspired by the work of mathematicians and computer scientists exploring fractal geometry.
Happy fractal exploring! 🌀