v/examples/wasm/mandelbrot
2025-03-13 19:51:51 +02:00
..
favicon.ico
mandelbrot.html
mandelbrot.wasm.v tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
README.md
serve_folder.v

Run V Mandelbrot Example

Using only V

v run .

Using Python or Emscripten

  1. First, create mandelbrot.wasm. Compile with -os browser.
v -b wasm -os browser mandelbrot.wasm.v
  1. Then, open the mandelbrot.html file in the browser.
    • CORS errors do not allow mandelbrot.wasm to be loaded.
    • Use python -m http.server 8080
    • Use emrun mandelbrot.html