mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
| .. | ||
| favicon.ico | ||
| mandelbrot.html | ||
| mandelbrot.wasm.v | ||
| README.md | ||
| serve_folder.v | ||
Run V Mandelbrot Example
Using only V
v run .
Using Python or Emscripten
- First, create
mandelbrot.wasm. Compile with-os browser.
v -b wasm -os browser mandelbrot.wasm.v
- Then, open the
mandelbrot.htmlfile in the browser.- CORS errors do not allow
mandelbrot.wasmto be loaded. - Use
python -m http.server 8080 - Use
emrun mandelbrot.html
- CORS errors do not allow