PyChaos is a Python utility that generates a pattern of dots based on user-selected anchor points and a random selection process. The project uses PyGame for visualization and Numpy for numerical operations.
The utility allows users to select 3 to 6 anchor points on a grid. Once the points are selected, the user can press the start button to begin the simulation. The system will simulate rolling a 6-sided die to randomly select one of the anchor points. A new dot will be placed at the midpoint between the last placed dot and the selected anchor point. The first dot will always be the midpoint between the first and last anchor points.
- Select 3 to 6 anchor points on a grid.
- Simulate rolling a 6-sided die to select an anchor point.
- Generate dots at the midpoint between the last placed dot and the selected anchor point.
- Visualize the pattern generation using PyGame.
- Python 3.x
- PyGame-CE
- Numpy
- Clone the repository:
git clone https://github.com/coraxwolf/pychaos.git
- Navigate to the project directory:
cd pychaos
- Install the required packages:
pip install -r requirements.txt
- Run the main script:
python chaos.py
- Select 3 to 6 anchor points on the grid by clicking on the desired locations.
- Press the space to begin the simulation.
- Watch as the dots are generated and placed on the grid.
This project is licensed under the MIT License. See the LICENSE file for details.