For this week's fractal assignment, I wanted to do some experimentation with 2D visuals. Because I am already familiar with the concept of recursion, I was more focused on creating something fun. I was inspired by the patterns of kaleidoscopes when starting my sketch:
Although I didn't want to mimic the exact designs of the kaleidoscope, I wanted the user to be able to adjust the scale of each fractal with the mouse, and have the color change according to the mouse position as well. 

Very simple setup; if the mouse is pressed, I call the drawCircle function and set the x and y positions to a random number between two placeholders, and a scaled mouseX value.

The drawCircle function draws an ellipse that takes in x,y, and diameter functions, then calls itself four times with varying position parameters. 

Screengrabs:
Sketch (hold down mouse for color change and sound):
Back to Top