Skip to content

Commit

Permalink
Merge pull request #6689 from asukaminato0721/optional-parms
Browse files Browse the repository at this point in the history
make parms optional
  • Loading branch information
davepagurek authored Jan 7, 2024
2 parents 16e47b0 + 117464f commit a3fdfbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/color/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ p5.prototype.background = function(...args) {
* </code>
* </div>
*
* @param {Number} r normalized red value.
* @param {Number} g normalized green value.
* @param {Number} b normalized blue value.
* @param {Number} a normalized alpha value.
* @param {Number} [r] normalized red value.
* @param {Number} [g] normalized green value.
* @param {Number} [b] normalized blue value.
* @param {Number} [a] normalized alpha value.
*/
p5.prototype.clear = function(...args) {
const _r = args[0] || 0;
Expand Down

0 comments on commit a3fdfbe

Please sign in to comment.