Git Product home page Git Product logo

visions_of_mandelbrot's Introduction

Visions of Mandelbrot

This project represents my first steps into WASM. I've been tinkering in Rust for a while, and I wanted a more complex goal. This project's goals are to implement a reasonably efficient Mandelbrot Set renderer with interactive controls that targets both the desktop and web. Rendering to the screen and input are handled by the Pixels library. Since I've used this library before I used the minimal-web example as a starting point to avoid writing boilerplate. I'm using the Wikipedia article Plotting algorithms for the Mandelbrot set as my main reference for implementation hints and optimization strategies.

Controls

  • Zoom in: Left mouse click
  • Zoom out: Right mouse click
  • Randomize color palatte: P

TODO:

  • Basic bulb
  • Color
  • Zoom
  • Retargeting
  • Split render from screen drawing
  • UI
  • Preset or custom palettes
  • Bookmarks

Dev env setup

  1. Install Rust + Cargo.
  2. Clone the repo.
  3. Install dependencies: cargo install --locked wasm-bindgen-cli just miniserve

Running

For Desktop

cargo run --package visions_of_mandelbrot --bin visions_of_mandelbrot

For Web

  1. just serve visions_of_mandelbrot
  2. Visit http://localhost:8080/ in a web browser.

visions_of_mandelbrot's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.