webfx-demos / webfx-demo-mandelbrot

A Web Application written in JavaFX to visit 9 Mandelbrot places. The computation is transpiled in WebAssembly. Also cross-platform & native.

Home Page:https://mandelbrot.webfx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Live demo

The demo is published on this page.

This application proposes 9 Mandelbrot places to visit and computes for each a series of frames to play a zoom effect. In the settings, you can adjust the number of web workers and switch between JavaScript and WebAssembly for the computation.

Highlighted features

Reusability

This demo demonstrates how you can reuse some java code from existing java applications, even if not written in JavaFX. For example, the Mandelbrot computation code was taken from this Java Swing application.

Web workers and WebAssembly

Since JavaFX was not originally designed for the web, WebFX provides some additional APIs to work with web-specific concepts such as web workers and WebAssembly modules, which can be useful for applications requiring heavy background tasks. WebFX can interact with third-party web workers and WebAssembly modules or you can write your own in Java. In this demo, they are written in Java and compiled with TeaVM.

About

A Web Application written in JavaFX to visit 9 Mandelbrot places. The computation is transpiled in WebAssembly. Also cross-platform & native.

https://mandelbrot.webfx.dev

License:Apache License 2.0


Languages

Language:Java 95.5%Language:CSS 2.7%Language:HTML 1.8%