Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimj92120/mandelbrot
A Mandelbrot set representation using WebAssembly with Rust and rendered with WebGL 2.
https://github.com/jimj92120/mandelbrot
canvas rust typescript wasm webassembly webgl
Last synced: 4 days ago
JSON representation
A Mandelbrot set representation using WebAssembly with Rust and rendered with WebGL 2.
- Host: GitHub
- URL: https://github.com/jimj92120/mandelbrot
- Owner: JimJ92120
- Created: 2022-09-19T01:33:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T16:22:40.000Z (over 2 years ago)
- Last Synced: 2024-11-24T20:28:24.270Z (2 months ago)
- Topics: canvas, rust, typescript, wasm, webassembly, webgl
- Language: TypeScript
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mandelbrot
A Mandelbrot set representation using WebAssembly with Rust and rendered with WebGL 2.
See [demo](https://jimj92120.github.io/mandelbrot) in Github Pages.---
---
## Requirements
| | |
|--------------|-----------|
| `npm` | `^6.0` |
| `Node.js` | `^14.0` |
| `TypeScript` | `^4.0` |
| `Rust` | `^1.63.0` |
| `Cargo` | `^1.63.0` |
| `wasm-pack` | `^0.10.3` |
## Project's structure
```sh
/(root)
/src # app entrypoint (Typescript / JavaScript)
/lib # lib entrypoint (Rust)
/static # static assets (e.g index.html)
```## How to install
```sh
npm install
```## How to run in debug mode
```sh
# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm start
```## How to build in release mode
```sh
# Builds the project and places it into the `dist` folder.
npm run build
```## How to run unit tests
```sh
# Runs tests in Firefox
npm test -- --firefox# Runs tests in Chrome
npm test -- --chrome# Runs tests in Safari
npm test -- --safari
```