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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q5",
3
- "version": "2.12.10",
3
+ "version": "2.13.1",
4
4
  "description": "A sequel to p5.js that's optimized for interactive art",
5
5
  "author": "quinton-ashley",
6
6
  "contributors": [
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, and text baseline.
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
- * If a CSS filter string is provided, it will be applied to the image.
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 of filter or a CSS filter string
1273
- * @param {number} [value] optional parameter, depending on filter type
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');