q5 3.7.6 → 3.8.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/defs/q5-c2d.d.ts CHANGED
@@ -545,7 +545,7 @@ declare global {
545
545
  /** 🌆
546
546
  * Array of pixel color data from a canvas or image.
547
547
  *
548
- * Empty by default, populate by running `loadPixels`.
548
+ * Empty by default, get the data by running `loadPixels`.
549
549
  *
550
550
  * Each pixel is represented by four consecutive values in the array,
551
551
  * corresponding to its red, green, blue, and alpha channels.
@@ -677,13 +677,6 @@ declare global {
677
677
  */
678
678
  function createGraphics(w: number, h: number, opt?: any): Q5;
679
679
 
680
- namespace Q5 {
681
- interface Image {
682
- width: number;
683
- height: number;
684
- }
685
- }
686
-
687
680
  // 📘 text
688
681
 
689
682
  /** 📘
@@ -3168,7 +3161,7 @@ declare global {
3168
3161
  * @example
3169
3162
  * createCanvas(200, 100);
3170
3163
  *
3171
- * let sel = createSelect('Select a color');
3164
+ * let sel = createSelect('Select an option');
3172
3165
  * sel.option('Red', '#f55').option('Green', '#5f5');
3173
3166
  *
3174
3167
  * sel.addEventListener('change', () => {
@@ -3954,6 +3947,13 @@ declare global {
3954
3947
 
3955
3948
  }
3956
3949
 
3950
+ namespace Q5 {
3951
+ interface Image {
3952
+ width: number;
3953
+ height: number;
3954
+ }
3955
+ }
3956
+
3957
3957
  }
3958
3958
 
3959
3959
  export {};