File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ function _sAssign(sVal, iVal) {
316
316
* <img src="assets/drawImage.png"></img>
317
317
*
318
318
* @method image
319
- * @param {p5.Image|p5.Element } img the image to display
319
+ * @param {p5.Image|p5.Element|p5.Texture } img the image to display
320
320
* @param {Number } x the x-coordinate of the top-left corner of the image
321
321
* @param {Number } y the y-coordinate of the top-left corner of the image
322
322
* @param {Number } [width] the width to draw the image
@@ -387,7 +387,7 @@ function _sAssign(sVal, iVal) {
387
387
*/
388
388
/**
389
389
* @method image
390
- * @param {p5.Image|p5.Element } img
390
+ * @param {p5.Image|p5.Element|p5.Texture } img
391
391
* @param {Number } dx the x-coordinate of the destination
392
392
* rectangle in which to draw the source image
393
393
* @param {Number } dy the y-coordinate of the destination
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ p5.prototype.resetShader = function() {
380
380
* <a href="https://p5js.org/examples/3d-materials.html">example</a>.
381
381
*
382
382
* @method texture
383
- * @param {p5.Image|p5.MediaElement|p5.Graphics } tex image to use as texture
383
+ * @param {p5.Image|p5.MediaElement|p5.Graphics|p5.Texture } tex image to use as texture
384
384
* @chainable
385
385
* @example
386
386
* <div>
You can’t perform that action at this time.
0 commit comments