Inspiration
I was inspired by the human body -- specifically red blood cells, and how their growth patterns can specifically relate to graphic design. This is the concept of fractals and the idea of mathematics that you don't normally see.
What it does
Simulates/visualizes the Sierpinski Triangle of a given order. You can run it, by using javac-algs4 Sierpinski.java to compile, and then java-algs4 Sierpinski {insert any number here} (the number you put is in the order, and it will run for any given order. It will first ask you if you want it in black or in color, and then it will run. It will also give you the duration of drawing time at the end (in seconds). Use control C to have the program stop running. (It won't stop on its own on purpose, in case someone wants to play around with it, etc.).
How I built it
I built it solely using java, and I used some external packages as well.
Challenges I ran into
Trying to get the recursive function was such a challenge! Trying to get the function to work so it could get all the orders right, without doing them manually / using loops, was really hard.
Accomplishments that I am proud of
I was able to get the recursive function working! It took a lot of effort (and drawing on my notepad) to think about it and make it work, but it worked in the end.
What I learned
I learned a lot more about how the triangle and fractals can be applied: in sensors, in cities with specific growth patterns, in the human body, and more. I also was able to further my knowledge in recursion and algorithms.
What's next for Sierpinski Triangle and Fractals
I want to further its applications: graphic/video game design (helps with storage and simplicity), as well as antennas, medicine, cities, and more. I specifically want to look at the applications with blood cells, and how I can depict this and use the application with fractals to specifically show how this can work.


Log in or sign up for Devpost to join the conversation.