@gjsify/example-dom-canvas2d-fireworks 0.4.43 → 0.5.0
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 +30 -0
- package/dist/gjs.js +2 -2
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @gjsify/example-dom-canvas2d-fireworks
|
|
2
|
+
|
|
3
|
+
A polished Canvas 2D fireworks animation running on both GJS/GTK (via `@gjsify/canvas2d`'s `Canvas2DBridge` over Cairo) and in the browser — from the same shared source. Adapted from [juliangarnier's fireworks pen](https://codepen.io/juliangarnier/pen/gmOwJX). The GJS variant renders inside a native Adwaita window with GTK controls; the browser variant uses the same animation code with `@gjsify/adwaita-web` components.
|
|
4
|
+
|
|
5
|
+
Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and Web APIs for GJS (GNOME JavaScript).
|
|
6
|
+
|
|
7
|
+
## Run
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Build first
|
|
11
|
+
gjsify run build
|
|
12
|
+
|
|
13
|
+
# GJS / GTK4 native window
|
|
14
|
+
gjsify showcase canvas2d-fireworks
|
|
15
|
+
# or: gjsify run start
|
|
16
|
+
|
|
17
|
+
# Browser (serves dist/ on localhost:8080)
|
|
18
|
+
gjsify run start:browser
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What it demonstrates
|
|
22
|
+
|
|
23
|
+
- Canvas 2D rendering on GJS via `@gjsify/canvas2d` (Cairo + PangoCairo backend)
|
|
24
|
+
- Shared animation logic between GJS and browser targets
|
|
25
|
+
- Adwaita design language in both variants (`@gjsify/adwaita-web` for browser, native Adw widgets for GJS)
|
|
26
|
+
- `gjsify build --app gjs` and `--app browser` dual-target build
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
MIT
|