#julia #interactive #sets #pixel

bin+lib julia_set_explorer

Interactive visualisation of Julia sets

1 unstable release

0.1.0 May 23, 2023

#438 in Visualization

MIT license

4.5MB
240 lines

Contains (Zip file, 2MB) executables/windows/explorer.exe.zip, (Zip file, 300KB) executables/unix/explorer.zip

JuliaSetExplorer

This is an interactive fractal visualiser that lets you walk around the complex plane, generating mesmerising Julia sets as you go. Written in Rust, it uses minifb to display the generated pixels and handle UI. It also uses a neat linear interpolation module to convert real values to RGB pixels.

Controls

  • Move your mouse: the interactive window represents a region of the complex plane centred at the origin and will display an image of the Julia set that corresponds to the point under your mouse.
  • Left/right arrow keys/mouse buttons: change the maximum number of iterations by using the left and right arrow keys or the left and right mouse buttons. Left will increase the maximum number of iterations making the image darker but potentially more detailed, right will do the opposite.
  • ENTER: reset the maximum number of iterations to the default.
  • Hold SPACE: see an image of the Mandelbrot set in the same region of the complex plane. This serves as a kind of map, as the Julia sets generated for a given point will resemble the region of the Mandelbrot set around that point.

Run

You can always clone and run

cargo run --release

but since the resulting executables are so small I've also included them in the repo for those on Linux/MacOS or Windows. Just download and unzip. You might have to right-click and select open after unzipping.

Examples

Here are some static examples, however they are no substitute for seeing the colours morph and twist dynamically.

Dependencies

~10–13MB
~222K SLoC