Coder Social home page Coder Social logo

delivrance / fractus Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 2.0 317 KB

Elegant Fractal Explorer written in C++ (WebAssembly) and JavaScript

Home Page: https://delivrance.github.io/fractus

License: MIT License

CSS 0.86% HTML 6.33% JavaScript 41.05% CMake 1.09% C++ 50.67%
javascript fractals thread hacktoberfest

fractus's Introduction

Elegant Fractal Explorer web application written in C++ (WebAssembly) and JavaScript

Fractus header image

Fractus is a WebAssembly-based web application written in C++ and JavaScript that allows you to explore the two-dimensional realm of the Mandelbrot set. Fractus is built from the ground up to be a fast, easy and pleasant to use Fractal Explorer that runs on a web browser. You can start using Fractus right away by visiting delivrance.github.io/fractus.

Features

  • Written in multi-threaded C++ code compiled to WebAssembly (wasm).
  • Gorgeous palette making up beautiful shades of colors as you explore.
  • Move and zoom with your mouse: drag to move, wheel to zoom.
  • Bookmark and share links of the exact fractal positions.
  • Save images with Right Click > Save Image As...
  • Reset the fractal view by hitting Backspace.

Limitations

  • Fractus makes use of threads and shared array buffers, features currently available OOB only in Chromium-based browsers such as Google Chrome, Microsoft Edge and Opera. Other browsers might work if you fiddle with their configurations and enable experimental flags.
  • Currently working on desktop browsers only.

ToDo

  • Add support for mobile browsers and gestures.
  • Add more fractals to explore (e.g.: Julia, Burning Ship).
  • Find a way to keep renderings outside the main thread.
  • Find a way to cancel an ongoing rendering.
  • Add a progress bar as feedback for the ongoing rendering.

Build

  1. Install and configure emscripten.
  2. Enter the directory cd src/wasm.
  3. Run emcc -O3 -s TOTAL_MEMORY=256MB -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=16 -std=c++2a -o fractus.js fractus.cpp.

License

MIT © 2020 Dan

fractus's People

Contributors

delivrance avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

denji mu6m

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.