An open API service indexing awesome lists of open source software.

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

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.