File tree Expand file tree Collapse file tree 12 files changed +150
-132
lines changed Expand file tree Collapse file tree 12 files changed +150
-132
lines changed Original file line number Diff line number Diff line change 197
197
"colorMode" : {
198
198
"overloads" : [
199
199
[
200
- " RGB|HSB|HSL" ,
200
+ " RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH " ,
201
201
" Number?"
202
202
],
203
203
[
204
- " RGB|HSB|HSL" ,
204
+ " RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH " ,
205
205
" Number" ,
206
206
" Number" ,
207
207
" Number" ,
401
401
[
402
402
" Number?" ,
403
403
" Number?" ,
404
- " P2D|WEBGL?" ,
404
+ " P2D|WEBGL|P2DHDR ?" ,
405
405
" HTMLCanvasElement?"
406
406
],
407
407
[
844
844
"keyIsDown" : {
845
845
"overloads" : [
846
846
[
847
- " Number"
847
+ " Number|String "
848
848
]
849
849
]
850
850
},
1324
1324
" Number" ,
1325
1325
" Number" ,
1326
1326
" Number"
1327
+ ],
1328
+ [
1329
+ " p5.Vector"
1327
1330
]
1328
1331
]
1329
1332
},
2319
2322
"strokeMode" : {
2320
2323
"overloads" : [
2321
2324
[
2322
- " string "
2325
+ " String "
2323
2326
]
2324
2327
]
2325
2328
},
2748
2751
]
2749
2752
]
2750
2753
},
2754
+ "createModel" : {
2755
+ "overloads" : [
2756
+ [
2757
+ " String" ,
2758
+ " String?" ,
2759
+ " Boolean" ,
2760
+ " function(p5.Geometry)?" ,
2761
+ " function(Event)?"
2762
+ ],
2763
+ [
2764
+ " String" ,
2765
+ " String?" ,
2766
+ " function(p5.Geometry)?" ,
2767
+ " function(Event)?"
2768
+ ],
2769
+ [
2770
+ " String" ,
2771
+ " String?" ,
2772
+ " Object?" ,
2773
+ " function(p5.Geometry)?" ,
2774
+ " function(Event)?" ,
2775
+ " boolean?" ,
2776
+ " boolean?" ,
2777
+ " boolean?"
2778
+ ]
2779
+ ]
2780
+ },
2751
2781
"loadShader" : {
2752
2782
"overloads" : [
2753
2783
[
3361
3391
]
3362
3392
}
3363
3393
},
3394
+ "p5.Geometry" : {
3395
+ "flipV" : {
3396
+ "overloads" : [
3397
+ []
3398
+ ]
3399
+ },
3400
+ "calculateBoundingBox" : {
3401
+ "overloads" : [
3402
+ []
3403
+ ]
3404
+ },
3405
+ "clearColors" : {
3406
+ "overloads" : [
3407
+ []
3408
+ ]
3409
+ },
3410
+ "flipU" : {
3411
+ "overloads" : [
3412
+ []
3413
+ ]
3414
+ },
3415
+ "computeFaces" : {
3416
+ "overloads" : [
3417
+ []
3418
+ ]
3419
+ },
3420
+ "computeNormals" : {
3421
+ "overloads" : [
3422
+ [
3423
+ " FLAT|SMOOTH?" ,
3424
+ " Object?"
3425
+ ]
3426
+ ]
3427
+ },
3428
+ "normalize" : {
3429
+ "overloads" : [
3430
+ []
3431
+ ]
3432
+ }
3433
+ },
3364
3434
"p5.Color" : {
3365
3435
"toString" : {
3366
3436
"overloads" : [
3721
3791
"textBounds" : {
3722
3792
"overloads" : [
3723
3793
[
3724
- " string " ,
3725
- " number " ,
3726
- " number " ,
3727
- " number " ,
3728
- " number "
3794
+ " String " ,
3795
+ " Number " ,
3796
+ " Number " ,
3797
+ " Number " ,
3798
+ " Number "
3729
3799
]
3730
3800
]
3731
3801
},
3732
3802
"fontBounds" : {
3733
3803
"overloads" : [
3734
3804
[
3735
- " string " ,
3736
- " number " ,
3737
- " number " ,
3738
- " number " ,
3739
- " number "
3805
+ " String " ,
3806
+ " Number " ,
3807
+ " Number " ,
3808
+ " Number " ,
3809
+ " Number "
3740
3810
]
3741
3811
]
3742
3812
},
3743
3813
"textWidth" : {
3744
3814
"overloads" : [
3745
3815
[
3746
- " string "
3816
+ " String "
3747
3817
]
3748
3818
]
3749
3819
},
3750
3820
"fontWidth" : {
3751
3821
"overloads" : [
3752
3822
[
3753
- " string "
3823
+ " String "
3754
3824
]
3755
3825
]
3756
3826
},
3782
3852
"overloads" : [
3783
3853
[
3784
3854
" p5.Font|string" ,
3785
- " number " ,
3786
- " object "
3855
+ " Number " ,
3856
+ " Object "
3787
3857
]
3788
3858
]
3789
3859
},
4200
4270
"getValue" : {
4201
4271
"overloads" : [
4202
4272
[
4203
- " number "
4273
+ " Number "
4204
4274
]
4205
4275
]
4206
4276
},
4207
4277
"setValue" : {
4208
4278
"overloads" : [
4209
4279
[
4210
- " number " ,
4211
- " number "
4280
+ " Number " ,
4281
+ " Number "
4212
4282
]
4213
4283
]
4214
4284
},
4267
4337
},
4268
4338
"sub" : {
4269
4339
"overloads" : [
4270
- [
4271
- " Number" ,
4272
- " Number?" ,
4273
- " Number?"
4274
- ],
4275
4340
[
4276
4341
" p5.Vector|Number[]"
4277
4342
],
4284
4349
},
4285
4350
"mult" : {
4286
4351
"overloads" : [
4287
- [
4288
- " Number"
4289
- ],
4290
4352
[
4291
4353
" Number" ,
4292
4354
" Number" ,
4395
4457
]
4396
4458
]
4397
4459
},
4398
- "dist" : {
4399
- "overloads" : [
4400
- [
4401
- " p5.Vector"
4402
- ],
4403
- [],
4404
- [
4405
- " p5.Vector" ,
4406
- " p5.Vector"
4407
- ]
4408
- ]
4409
- },
4410
4460
"normalize" : {
4411
4461
"overloads" : [
4412
4462
[],
4582
4632
"overloads" : [
4583
4633
[]
4584
4634
]
4635
+ },
4636
+ "dist" : {
4637
+ "overloads" : [
4638
+ [],
4639
+ [
4640
+ " p5.Vector" ,
4641
+ " p5.Vector"
4642
+ ]
4643
+ ]
4585
4644
}
4586
4645
},
4587
4646
"p5.Camera" : {
4758
4817
]
4759
4818
}
4760
4819
},
4761
- "p5.Geometry" : {
4762
- "calculateBoundingBox" : {
4763
- "overloads" : [
4764
- []
4765
- ]
4766
- },
4767
- "clearColors" : {
4768
- "overloads" : [
4769
- []
4770
- ]
4771
- },
4772
- "flipU" : {
4773
- "overloads" : [
4774
- []
4775
- ]
4776
- },
4777
- "flipV" : {
4778
- "overloads" : [
4779
- []
4780
- ]
4781
- },
4782
- "computeFaces" : {
4783
- "overloads" : [
4784
- []
4785
- ]
4786
- },
4787
- "computeNormals" : {
4788
- "overloads" : [
4789
- [
4790
- " FLAT|SMOOTH?" ,
4791
- " Object?"
4792
- ]
4793
- ]
4794
- },
4795
- "normalize" : {
4796
- "overloads" : [
4797
- []
4798
- ]
4799
- }
4800
- },
4801
4820
"p5.Shader" : {
4802
4821
"version" : {
4803
4822
"overloads" : [
Original file line number Diff line number Diff line change @@ -751,9 +751,9 @@ function setting(p5, fn){
751
751
* created in. Changing modes doesn't affect their appearance.
752
752
*
753
753
* @method colorMode
754
- * @param {( RGB|HSB|HSL) } mode either RGB, HSB or HSL, corresponding to
755
- * Red/Green/Blue and Hue/Saturation/Brightness
756
- * (or Lightness).
754
+ * @param {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH } mode either RGB, HSB
755
+ * or HSL, corresponding to Red/Green/Blue and
756
+ * Hue/Saturation/Brightness (or Lightness).
757
757
* @param {Number } [max] range for all values.
758
758
* @chainable
759
759
*
@@ -937,7 +937,7 @@ function setting(p5, fn){
937
937
938
938
/**
939
939
* @method colorMode
940
- * @param {( RGB|HSB|HSL) } mode
940
+ * @param {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH } mode
941
941
* @param {Number } max1 range for the red or hue depending on the
942
942
* current color mode.
943
943
* @param {Number } max2 range for the green or saturation depending
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export const verifierUtils = {
64
64
*
65
65
* @private
66
66
* @method extractUserDefinedVariablesAndFuncs
67
- * @param {string } code - The code to extract variables and functions from.
67
+ * @param {String } code - The code to extract variables and functions from.
68
68
* @returns {Object } An object containing the user's defined variables and functions.
69
69
* @returns {Array<{name: string, line: number}> } [userDefinitions.variables] Array of user-defined variable names and their line numbers.
70
70
* @returns {Array<{name: string, line: number}> } [userDefinitions.functions] Array of user-defined function names and their line numbers.
Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ function graphics(p5, fn){
609
609
* @extends p5.Element
610
610
* @param {Number } w width width of the graphics buffer in pixels.
611
611
* @param {Number } h height height of the graphics buffer in pixels.
612
- * @param {(P2D|WEBGL) } renderer the renderer to use, either P2D or WEBGL.
612
+ * @param {(P2D|WEBGL|P2DHDR ) } renderer the renderer to use, either P2D or WEBGL.
613
613
* @param {p5 } [pInst] sketch instance.
614
614
* @param {HTMLCanvasElement } [canvas] existing `<canvas>` element to use.
615
615
*
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function rendering(p5, fn){
45
45
* @method createCanvas
46
46
* @param {Number } [width] width of the canvas. Defaults to 100.
47
47
* @param {Number } [height] height of the canvas. Defaults to 100.
48
- * @param {(P2D|WEBGL) } [renderer] either P2D or WEBGL. Defaults to `P2D`.
48
+ * @param {(P2D|WEBGL|P2DHDR ) } [renderer] either P2D or WEBGL. Defaults to `P2D`.
49
49
* @param {HTMLCanvasElement } [canvas] existing canvas element that should be used for the sketch.
50
50
* @return {p5.Renderer } new `p5.Renderer` that holds the canvas.
51
51
*
Original file line number Diff line number Diff line change @@ -93,8 +93,8 @@ class FilterRenderer2D {
93
93
/**
94
94
* Set the current filter operation and parameter. If a customShader is provided,
95
95
* that overrides the operation-based shader.
96
- * @param {string } operation - The filter operation type (e.g., constants.BLUR).
97
- * @param {number } filterParameter - The strength of the filter.
96
+ * @param {String } operation - The filter operation type (e.g., constants.BLUR).
97
+ * @param {Number } filterParameter - The strength of the filter.
98
98
* @param {p5.Shader } customShader - Optional custom shader.
99
99
*/
100
100
setOperation ( operation , filterParameter , customShader = null ) {
Original file line number Diff line number Diff line change @@ -1426,7 +1426,7 @@ class Image {
1426
1426
* helper method for web GL mode to indicate that an image has been
1427
1427
* changed or unchanged since last upload. gl texture upload will
1428
1428
* set this value to false after uploading the texture.
1429
- * @param {boolean } val sets whether or not the image has been
1429
+ * @param {Boolean } val sets whether or not the image has been
1430
1430
* modified.
1431
1431
* @private
1432
1432
*/
You can’t perform that action at this time.
0 commit comments