q5 2.12.10 → 2.13.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/package.json +1 -1
- package/q5.d.ts +6 -5
- package/q5.js +212 -165
- package/q5.min.js +2 -2
- package/src/q5-2d-canvas.js +11 -3
- package/src/q5-2d-image.js +38 -33
- package/src/q5-canvas.js +1 -0
- package/src/q5-core.js +1 -1
- package/src/q5-webgpu-canvas.js +69 -50
- package/src/q5-webgpu-drawing.js +9 -9
- package/src/q5-webgpu-image.js +74 -58
- package/src/q5-webgpu-text.js +9 -11
package/package.json
CHANGED
package/q5.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ function draw() {
|
|
|
76
76
|
circle(frameCount * 5, 100, 80);
|
|
77
77
|
}
|
|
78
78
|
function mousePressed() {
|
|
79
|
-
redraw();
|
|
79
|
+
redraw(2);
|
|
80
80
|
}
|
|
81
81
|
*/
|
|
82
82
|
function redraw(n?: number): void;
|
|
@@ -620,7 +620,8 @@ function draw() {
|
|
|
620
620
|
* Saves the current drawing style settings.
|
|
621
621
|
*
|
|
622
622
|
* This includes the fill, stroke, stroke weight, tint, image mode,
|
|
623
|
-
* rect mode, ellipse mode, text size, text align,
|
|
623
|
+
* rect mode, ellipse mode, text size, text align, text baseline, and
|
|
624
|
+
* shadow settings.
|
|
624
625
|
* @example
|
|
625
626
|
function draw() {
|
|
626
627
|
background(200);
|
|
@@ -1267,10 +1268,10 @@ function setup() {
|
|
|
1267
1268
|
*
|
|
1268
1269
|
* See the documentation for q5's filter constants below for more info.
|
|
1269
1270
|
*
|
|
1270
|
-
*
|
|
1271
|
+
* A CSS filter string can also be used.
|
|
1271
1272
|
* https://developer.mozilla.org/en-US/docs/Web/CSS/filter
|
|
1272
|
-
* @param {string} type type
|
|
1273
|
-
* @param {number} [value] optional
|
|
1273
|
+
* @param {string} type filter type or a CSS filter string
|
|
1274
|
+
* @param {number} [value] optional value, depends on filter type
|
|
1274
1275
|
* @example
|
|
1275
1276
|
createCanvas(200, 200);
|
|
1276
1277
|
let logo = loadImage('/q5js_logo.webp');
|