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.
Files changed (2) hide show
  1. package/README.md +3 -2
  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](https://github.com/ethan-ou/bright-canvas/blob/main/demo/minimal.html) for a minimal example. [(web)](https://bright-canvas.netlify.app/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](https://github.com/ethan-ou/bright-canvas/blob/main/demo/minimal-float16.html) for a minimal example with float16 and display-p3 colors. [(web)](https://bright-canvas.netlify.app/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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bright-canvas",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Brighten any canvas with proper HDR support. No flags required.",
5
5
  "license": "MIT",
6
6
  "author": "Inclushe",