v/examples/wasm/mandelbrot
2025-03-13 19:51:51 +02:00
..
favicon.ico examples: increase the resolution of the generated image in examples/wasm/mandelbrot 2023-12-11 16:54:09 +02:00
mandelbrot.html examples: increase the resolution of the generated image in examples/wasm/mandelbrot 2023-12-11 16:54:09 +02:00
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 examples: increase the resolution of the generated image in examples/wasm/mandelbrot 2023-12-11 16:54:09 +02:00
serve_folder.v examples: increase the resolution of the generated image in examples/wasm/mandelbrot 2023-12-11 16:54:09 +02:00

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