website/docs/demo.md
Some scenarios when using Rust and Dart include:
We demonstrate a simple example here. In this demo, let us draw a Mandelbrot set (a well-known infinite-resolution "image" generated by a simple math formula). The image is plotted in Flutter UI, generated by Rust algorithm, and communicated via this library. Tweak the number of threads to see how multi-thread Rust code speeds up :)
<details> <summary>What is a Mandelbrot Set</summary>The Mandelbrot set is the set of complex numbers c
for which the function f_c(z)=z^{2}+c does not diverge to infinity when iterated from z=0.
Images of the Mandelbrot set exhibit an elaborate and infinitely complicated boundary
that reveals progressively ever-finer recursive detail at increasing magnifications.
Image credit: Simpsons contributor
</details>Due to the limitation of GitHub Pages which hosts this documentation, this page will be auto refreshed once.
import FrbExampleGallery from "@site/src/components/FrbExampleGallery";
<FrbExampleGallery />All source code can be found in frb_example/gallery.
Remember to ignore all ignore_me folders, which contain code unrelated to the purpose of the demos.