diff --git a/src/image/loading_displaying.js b/src/image/loading_displaying.js index f961740e89..8ea5666086 100644 --- a/src/image/loading_displaying.js +++ b/src/image/loading_displaying.js @@ -316,7 +316,7 @@ function _sAssign(sVal, iVal) { * * * @method image - * @param {p5.Image|p5.Element} img the image to display + * @param {p5.Image|p5.Element|p5.Texture} img the image to display * @param {Number} x the x-coordinate of the top-left corner of the image * @param {Number} y the y-coordinate of the top-left corner of the image * @param {Number} [width] the width to draw the image @@ -387,7 +387,7 @@ function _sAssign(sVal, iVal) { */ /** * @method image - * @param {p5.Image|p5.Element} img + * @param {p5.Image|p5.Element|p5.Texture} img * @param {Number} dx the x-coordinate of the destination * rectangle in which to draw the source image * @param {Number} dy the y-coordinate of the destination diff --git a/src/webgl/material.js b/src/webgl/material.js index c975fde404..4a6143e83f 100644 --- a/src/webgl/material.js +++ b/src/webgl/material.js @@ -380,7 +380,7 @@ p5.prototype.resetShader = function() { * example. * * @method texture - * @param {p5.Image|p5.MediaElement|p5.Graphics} tex image to use as texture + * @param {p5.Image|p5.MediaElement|p5.Graphics|p5.Texture} tex image to use as texture * @chainable * @example *