This repository provides Python scripts to visualize Koch fractals, including the Koch curve, Koch snowflake and a randomized variation of the Koch snowflake.
- Koch Curve: Draw a single Koch curve up to a specified recursion depth.
- Koch Snowflake: Visualize the famous snowflake pattern built using Koch principles.
- Randomized Koch Snowflake: Generate a Koch snowflake with random variations in the fractal structure for unique patterns.
- Clone the repository:
git clone https://github.com/alexanderk001/koch-fractal.git
- Navigate into the folder:
cd koch-fractal
- Make sure you have Python 3.7 or later installed, which includes the
turtle
module.
-
Navigate to the
src
folder. -
Run the script for the desired fractal:
python koch_curve.py
src/
: Contains Python scripts for generating the fractals.images/
: Example outputs from the scripts.
Feel free to contribute by adding enhancements, fixing issues, or creating new variations of Koch fractals. Open a pull request, and we'll review it as soon as possible!
This project is licensed under the MIT License.