bright-canvas 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ hdr.render(); // call in frame function after drawing to srcCanvas
|
|
|
42
42
|
hdr.destroy(); // release WebGPU canvas resources
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
See [demo/minimal.html](
|
|
45
|
+
See [demo/minimal.html](demo/minimal.html) for a minimal example. [(web)](https://bright-canvas.netlify.app/demo/minimal.html)
|
|
46
46
|
|
|
47
47
|
## Demo
|
|
48
48
|
|
|
@@ -62,7 +62,7 @@ npx local-web-server --https
|
|
|
62
62
|
- When using canvases with higher bit depths (ex. `colorType: 'float16'` as 2d canvas option), set `sourceFloat16` to true to properly map these values.
|
|
63
63
|
- `colorType` is only supported in Chrome at the moment.
|
|
64
64
|
- Using in combination with `colorSpace: 'display-p3'` is recommended.
|
|
65
|
-
- Vibrant colors may only show up on Chrome in MacOS. See [demo/minimal-float16.html](
|
|
65
|
+
- Vibrant colors may only show up on Chrome in MacOS. See [demo/minimal-float16.html](demo/minimal-float16.html) for a minimal example with float16 and display-p3 colors. [(web)](https://bright-canvas.netlify.app/demo/minimal-float16.html)
|
|
66
66
|
- Call `hdr.render()` in the same frame you draw to the source canvas.
|
|
67
67
|
- Source dimensions are captured at init; resizing the source canvas afterward is not handled yet.
|
|
68
68
|
|
|
@@ -70,4 +70,5 @@ npx local-web-server --https
|
|
|
70
70
|
|
|
71
71
|
Claude Fable 5 was used to develop bright-canvas.js and demo/example.html with minimal editing.
|
|
72
72
|
Minimal examples and this README.md were written by me.
|
|
73
|
+
Supermaven autocomplete was used to help me write README.md and minimal examples faster.
|
|
73
74
|
WebGPU code was adapted from this webgpu-samples particles demo: https://webgpu.github.io/webgpu-samples/?sample=particles
|