Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
2. 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`
|
||||
Reference in new issue
Block a user