q5 3.9.4 → 4.0.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 +17 -13
- package/deno.json +2 -2
- package/package.json +6 -4
- package/q5.d.ts +1125 -788
- package/q5.js +172 -57
- package/q5.min.js +2 -2
- package/defs/q5-c2d-es.d.ts +0 -4049
- package/defs/q5-c2d.d.ts +0 -3990
- package/defs/q5-es.d.ts +0 -4352
package/README.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## Visit [q5js.org](https://q5js.org)! 💫
|
|
4
4
|
|
|
5
|
-
- inspired by [p5.js][] and [Processing
|
|
5
|
+
- inspired by [p5.js][] and [Processing][] ⭐️
|
|
6
6
|
- performance optimized for interactive art 🚀
|
|
7
7
|
- lightning fast [WebGPU renderer](https://github.com/q5js/q5.js/wiki/q5-WebGPU-renderer) ⚡️
|
|
8
8
|
- beginner friendly [documentation](https://q5js.org/learn) 📚
|
|
9
9
|
- compatible with popular addons, including [p5.sound][], [ml5.js][], and [p5play][] 🎮
|
|
10
|
-
- no dependencies, ~
|
|
11
|
-
- free to use under the LGPL
|
|
10
|
+
- no dependencies, ~140kb minified 📦
|
|
11
|
+
- free to use under the LGPL 🆓
|
|
12
12
|
|
|
13
|
-
q5
|
|
13
|
+
q5 was designed to make creative coding fun and accessible for educators, artists, designers, and beginners. 🤝
|
|
14
14
|
|
|
15
15
|
Familiar with p5? You'll be right at home with q5. It's like getting a free computer upgrade! 🖥️
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
|
-
await Canvas(
|
|
19
|
-
circle(
|
|
18
|
+
await Canvas(200);
|
|
19
|
+
circle(0, 0, 80);
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Documentation
|
|
@@ -40,13 +40,13 @@ Use the [q5.d.ts](q5.d.ts) file in Visual Studio Code to get autocompletion and
|
|
|
40
40
|
|
|
41
41
|
## Support q5 💙
|
|
42
42
|
|
|
43
|
-
q5 is open source and anyone can use it for free under the terms of the LGPL
|
|
43
|
+
q5 is open source and anyone can use it for free under the terms of the LGPL. 🎉
|
|
44
44
|
|
|
45
|
-
We need your support though! If you enjoy using q5
|
|
45
|
+
We need your support though! If you enjoy using q5, please donate via [GitHub Sponsors](https://github.com/sponsors/quinton-ashley), [ko-fi](https://ko-fi.com/q5play), or [Patreon](https://www.patreon.com/p5play).
|
|
46
46
|
|
|
47
47
|
## Contributing
|
|
48
48
|
|
|
49
|
-
Are you interested in
|
|
49
|
+
Are you interested in writing code for q5.js or improving the q5 ecosystem? Contributions are welcome!
|
|
50
50
|
|
|
51
51
|
Please report issues or comment on existing issues before working on a pull request. Check out the [q5 project planning board](https://github.com/orgs/q5js/projects/1/views/1).
|
|
52
52
|
|
|
@@ -54,14 +54,18 @@ All contributors must agree to the [code of conduct](CODE_OF_CONDUCT.md).
|
|
|
54
54
|
|
|
55
55
|
## Licensing
|
|
56
56
|
|
|
57
|
-
q5.js was created by
|
|
57
|
+
q5.js was created by [Quinton Ashley](https://github.com/quinton-ashley) and [contributors](https://github.com/q5js/q5.js/graphs/contributors). It is open source licensed under the LGPLv3.
|
|
58
58
|
|
|
59
|
-
@LingDong- created the original q5xjs library which is Unlicense licensed.
|
|
59
|
+
@LingDong- created the original q5xjs library which is Unlicense (public domain) licensed.
|
|
60
60
|
|
|
61
|
-
p5.js is licensed under the LGPLv2, small sections of p5' code directly copied into q5 are credited below. The rest of q5 is a new implementation of part of the p5 API. APIs are not copyrightable in the United States, as decided by the Supreme Court in the Google v Oracle case.
|
|
61
|
+
p5.js is licensed under the LGPLv2, small sections of p5' code directly copied into q5 are credited below. The rest of q5 is a new implementation of part of the p5 API. APIs are not copyrightable in the United States, as decided by the Supreme Court in the Google v Oracle case. q5 is not affiliated with The Processing Foundation.
|
|
62
62
|
|
|
63
63
|
## Credits
|
|
64
64
|
|
|
65
|
+
This project aims to continue the legacy of the incredible work done by [Ben Fry](https://benfry.com) and [Casey Reas](https://x.com/REAS) on Java [Processing](https://processingfoundation.org/), [Lauren McCarthy](http://lauren-mccarthy.com)'s work on [p5.js](https://p5js.org), and all contributors to these projects.
|
|
66
|
+
|
|
67
|
+
## Code Excerpt Sources
|
|
68
|
+
|
|
65
69
|
WebGPU MSDF text rendering:
|
|
66
70
|
https://webgpu.github.io/webgpu-samples/?sample=textRenderingMsdf
|
|
67
71
|
|
|
@@ -89,7 +93,7 @@ https://github.com/processing/p5.js/blob/1.1.9/src/math/noise.js
|
|
|
89
93
|
|
|
90
94
|
[p5]: https://p5js.org
|
|
91
95
|
[p5.js]: https://p5js.org
|
|
92
|
-
[Processing
|
|
96
|
+
[Processing]: https://processing.org
|
|
93
97
|
[p5.sound]: https://archive.p5js.org/reference/#/libraries/p5.sound
|
|
94
98
|
[ml5.js]: https://ml5js.org
|
|
95
99
|
[p5play]: https://p5play.org
|
package/deno.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@q5/q5",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "LGPL-3.0",
|
|
5
|
-
"description": "Beginner friendly graphics powered by WebGPU
|
|
5
|
+
"description": "Beginner friendly graphics powered by WebGPU, optimized for interactive art!",
|
|
6
6
|
"author": "quinton-ashley",
|
|
7
7
|
"exports": "./q5-deno-server.js",
|
|
8
8
|
"types": "./q5.d.ts",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "q5",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Beginner friendly graphics powered by WebGPU
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Beginner friendly graphics powered by WebGPU, optimized for interactive art!",
|
|
5
5
|
"author": "quinton-ashley",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"evanalulu",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"dist": "bun bundle && bun min",
|
|
35
35
|
"dist-p5play": "bun dist && cp q5.js ../../web/p5play-web/v3/q5.js && cp q5.min.js ../../web/p5play-web/v3/q5.min.js",
|
|
36
36
|
"tests": "jest test",
|
|
37
|
-
"bld": "node lang/
|
|
37
|
+
"bld": "node lang/build.js",
|
|
38
|
+
"dts": "node lang/types.js",
|
|
38
39
|
"v": "npm version patch --force",
|
|
39
40
|
"V": "npm version minor --force",
|
|
40
41
|
"version": "git add -A",
|
|
@@ -50,7 +51,8 @@
|
|
|
50
51
|
"keywords": [
|
|
51
52
|
"q5.js",
|
|
52
53
|
"q5js",
|
|
53
|
-
"
|
|
54
|
+
"WebGPU",
|
|
55
|
+
"graphics",
|
|
54
56
|
"p5",
|
|
55
57
|
"p5js",
|
|
56
58
|
"p5.js",
|