/mandelbrotSet

Simple implementation of a Mandelbrot set visualizer written in Kotlin and GLSL

Primary LanguageKotlinMIT LicenseMIT

mandelbrotSet

More boredom means more coding. Decided to do what everyone and their grandma's has already done: Visualize the Mandelbrot Set.

Created some zooms through the iteration count instead of the magnification: All of them can be found here (albiet in a highly compressed form): https://imgur.com/a/a6kfIwd

Tried to remake the "deep-zoom" animation on wikipedia. Couldnt zoom the whole way without arbitrary precision however.
Animated "Deep Zoom" - 4000 iterations
Animated "Deep Zoom" - 6000 iterations
Animated "Deep Zoom" - 10000 iterations
An interesting zoom I found - 2000 iterations
A zoom into the bifurcation diagram showing its fractal nature

I forgot that adjusting the max number of iterations produces better (and slower) results at higher numbers. Here's some results @1000 iteration limit (instead of the above 50-iteration limit): Screenshot More pretty pictures.... Screenshot Here's a nice illustration of how sensitive the patterns are to the maximum number of iterations. Compare this screenshot at 200 iterations max to the one below at 250 iterations max. Screenshot Screenshot Implemented a basic color ramp in HSV space varying only the hue using the normalized velocity. Works rather well: Screenshot I had no clue how to convert HSV to RGB values but found some awesome code on lolengine.net that works perfectly. Screenshot

Recently added a bifurcation diagram mode (shortcut key is B). Here's a few pictures of it: Screenshot Screenshot Screenshot The yellow box shows the area we are zooming into for the next image.