Multiple python pygame programs for drawing different fractals
Program for drawing fractal trees in Pygame
At the beginning of the main() function, you’ll find several constants such as:
ANGLE— branch rotation angle (in radians)RATIO— branch length ratioDEPTH— recursion depthSTART_LENGTH— starting branch length
Modify these to create trees of different shapes and complexity.
Drawing Mandelbrot set in pygame
On the top of main() function there are 2 constants you can change:
NUMBER_OF_ITERATIONS- change number of iterations per pixel, higher the number, higher the resolution, but slower generation (try using from 100 to 1000)COLOR- color of the Mandelbrot set
Drawing Koch snowflake in pygame
You can change DELAY (in seconds) which is the time delay between steps of Koch snowflake

