Inspiration
We have always been intrigued by fractal images; we saw this project as an opportunity to develop our programming skills while investigating the images we found so fascinating.
What it does
The program takes a series of inputs from the user and uses them to render an image containing fractal patterns. The user is given control over line thickness, depth of fractals, the colour scheme of the image, and the types of shapes they want to see in the image.
How we built it
We built this program in python using the turtle module. The main idea behind our program is to use recursive functions in python to make the turtle draw patterns until a specific condition is met. We designed two general fractal functions and made variants on them to allow different color schemes.
Challenges we ran into
Setting up the user input was challenging because we had to think of all possible inputs and account for them in our conditional statements. At the beginning we also had to dedicate some time to wrapping our heads around how the recursive functions were actually working.
Accomplishments that we're proud of
We were able to express our love of fractal patterns with a program. We used python's turtle module to make drawings that were more complicated than we could have originally expected. This was our first hackathon.
What we learned
We learned how to write recursive functions in python, we also learned how to make a program that can give users a broader range of choices than we are used to.
What's next for Fractal Generator
Fractal Generator would greatly improve if it had its own website to run on, instead of being limited to the python shell. We would like to make a website that runs this program and add more features to the program to allow for more colour, shape, and size choices.
Built With
- python
- turtle
- wing101
Log in or sign up for Devpost to join the conversation.