q5 2.20.5 → 2.20.7
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 -6
- package/q5.js +205 -120
- package/q5.min.js +1 -1
package/package.json
CHANGED
package/q5.d.ts
CHANGED
|
@@ -829,7 +829,7 @@ rect(20, 20, 60, 60);
|
|
|
829
829
|
/** ⬜️
|
|
830
830
|
* Creates a graphics buffer.
|
|
831
831
|
*
|
|
832
|
-
* Not
|
|
832
|
+
* Not recommended for use in q5 WebGPU.
|
|
833
833
|
* @param {number} w width
|
|
834
834
|
* @param {number} h height
|
|
835
835
|
* @param {Object} [opt] options
|
|
@@ -2726,14 +2726,14 @@ function draw() {
|
|
|
2726
2726
|
/** 🎞️
|
|
2727
2727
|
* Creates a recorder. Simply hit record to start recording!
|
|
2728
2728
|
*
|
|
2729
|
-
*
|
|
2730
|
-
*
|
|
2729
|
+
* The following properties can be set via the recorder UI or
|
|
2730
|
+
* programmatically.
|
|
2731
2731
|
*
|
|
2732
|
-
* `
|
|
2732
|
+
* - `format` is set to "H.264" by default. Encoding in "VP9" may not
|
|
2733
|
+
* be possible on some devices.
|
|
2734
|
+
* - `bitrate` is a number in megabits per second (mbps). Its default
|
|
2733
2735
|
* value is determined by the height of the canvas. Increasing the
|
|
2734
2736
|
* bitrate will increase the quality and file size of the recording.
|
|
2735
|
-
*
|
|
2736
|
-
* These properties can be set via the recorder UI or programmatically.
|
|
2737
2737
|
* @returns {HTMLElement} a recorder, q5 DOM element
|
|
2738
2738
|
* @example
|
|
2739
2739
|
createCanvas(200);
|