Skip to content

IsakNyberg/mandelbrot-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An interactive WebAssembly-powered Mandelbrot set explorer built with Rust and WebGPU.

Features

  • Real-time Mandelbrot set rendering using WebGPU compute shaders
  • Interactive zoom and pan with mouse wheel and keyboard controls
  • High-performance WebAssembly backend
  • Responsive design that works on any screen size

Controls

  • Mouse wheel: Zoom in/out at cursor position
  • Arrow keys: Pan around the fractal
  • +/-: Zoom in/out at center
  • R: Reset to initial view
  • Z: Auto-zoom

Live Demo

Visit https://nyberg.dev/mandelbrot-wasm/ to try it out!

Development

Prerequisites

  • Rust with wasm32-unknown-unknown target
  • wasm-pack

Building

wasm-pack build --target web --release

Running locally

Serve the files with any static file server:

python -m http.server 8000

Deployment

This project automatically deploys to GitHub Pages via GitHub Actions when changes are pushed to the main branch.

About

Explore the Mandelbrot set with webGPU

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors