@@ -439,6 +439,11 @@ p5.prototype.clip = function(callback, options) {
439439 * in RGB values. Calling `background(255, 204, 0)` sets the background a bright
440440 * yellow color.
441441 *
442+ * The version of `background()` with four parameters interprets them as RGBA,
443+ * HSBA, or HSLA colors, depending on the current
444+ * <a href="#/p5/colorMode">colorMode()</a>. The last parameter sets the alpha
445+ * (transparency) value.
446+ *
442447 * @method background
443448 * @param {p5.Color } color any value created by the <a href="#/p5/color">color()</a> function
444449 * @chainable
@@ -1009,6 +1014,10 @@ p5.prototype.colorMode = function(mode, max1, max2, max3, maxA) {
10091014 * <a href="#/p5/colorMode">colorMode()</a>. The default color space is RGB,
10101015 * with each value in the range from 0 to 255.
10111016 *
1017+ * The version of `fill()` with four parameters interprets them as RGBA, HSBA,
1018+ * or HSLA colors, depending on the current <a href="#/p5/colorMode">colorMode()</a>. The last parameter
1019+ * sets the alpha (transparency) value.
1020+ *
10121021 * @method fill
10131022 * @param {Number } v1 red value if color mode is RGB or hue value if color mode is HSB.
10141023 * @param {Number } v2 green value if color mode is RGB or saturation value if color mode is HSB.
@@ -1365,7 +1374,7 @@ p5.prototype.noStroke = function() {
13651374 * Sets the color used to draw points, lines, and the outlines of shapes.
13661375 *
13671376 * Calling `stroke(255, 165, 0)` or `stroke('orange')` means all shapes drawn
1368- * after calling `stroke()` will be filled with the color orange. The way
1377+ * after calling `stroke()` will be outlined with the color orange. The way
13691378 * these parameters are interpreted may be changed with the
13701379 * <a href="#/p5/colorMode">colorMode()</a> function.
13711380 *
0 commit comments