Skip to content

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

License

Notifications You must be signed in to change notification settings

webfx-demos/webfx-demo-mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published