1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/wasm/mandelbrot
2023-02-28 23:58:53 +02:00
..
mandelbrot.html wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00
mandelbrot.v wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00
README.md wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00

V Mandelbrot Example

  1. First, create mandelbrot.wasm. Compile with -os browser.
v -b wasm -os browser mandelbrot.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