Skip to content

A simple Julia Set and Mandelbrot interactive explorer built using Rust. It can run as a desktop application or on the web. Web demo available at https://lobis.github.io/fractal-explorer/

Notifications You must be signed in to change notification settings

lobis/fractal-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build

A simple Julia and Mandelbrot Set explorer built using Rust. This was created as a learning project and is based on this great tutorial.

The explorer can be run as a standalone desktop application (should work for Windows, Linux and MacOS) or as a web application for which a demo is available.

🤓 Usage

  • Mouse Left Click: Toggle Julia set c parameter selection.
  • Mouse Cursor Position: Select Julia set c parameter.
  • Mouse Wheel | Trackpad | Up & Down Arroy Keys: Zoom on cursor position.
  • Mouse Right Click: Hold and drag to translate fractal.
  • J | M Keys: Toggle between Julia and Mandelbrot sets.

⚙️ Build

To build the executable run:

cargo build --release

There is a Windows executable available as an artifact of the v0.1.0 release which can be downloaded here. Please always be very careful when downloading executable files from the internet.

🌐 Web

To build the web application run the following command. You may need to install wasm-pack via cargo install wasm-pack.

wasm-pack build --target web --out-dir public/pkg

All files related to the static site will be placed under public with index.html the entrypoint. You can server the site locally using python3 -m http.server and then navigating to http://localhost:8000.

python -m http.server 8000 --bind 127.0.0.1 --directory public