mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
Run V Mandelbrot Example
Using only V
v run main.v
Using Python or Emscripten
- First, create
mandelbrot.wasm
. Compile with-os browser
.
v -b wasm -os browser mandelbrot.wasm.v
- 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
- CORS errors do not allow