https://github.com/brantem/diamond-painting
https://github.com/brantem/diamond-painting
diamond-painting infinite-canvas wasm
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brantem/diamond-painting
- Owner: brantem
- Created: 2024-10-16T04:56:11.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-03T15:56:46.000Z (7 months ago)
- Last Synced: 2025-02-10T01:19:09.459Z (3 months ago)
- Topics: diamond-painting, infinite-canvas, wasm
- Language: TypeScript
- Homepage: https://diamond-painting.brantem.com
- Size: 3.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Diamond Painting
This app generates a diamond painting pattern from any image you choose. It's designed to run locally in your browser and was built primarily to experiment with WebAssembly (WASM). At the moment, the app's functionality is limited to viewing the generated pattern on an infinite canvas.
### Generator
The pattern generator is written in Go and compiled to WebAssembly. If you want to build the generator, follow these steps:
1. Navigate to the `generator` folder.
2. Run the following command:```bash
make build
```The compiled WebAssembly file will be located in the `web/public/generator.wasm` directory.
### Current Limitations
- Performance: The generator can be a bit slow, likely due to the overhead of using WASM. While it would probably run faster if written in JavaScript, the goal here was to test WASM, which is why Go was used.