Skip to content

Commit 237498e

Browse files
committed
fix
1 parent 156b5af commit 237498e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/color/setting.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
*

src/core/shape/vertex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ p5.prototype.endContour = function () {
13421342
};
13431343

13441344
/**
1345-
* Completes the custom shape defined with vertex() calls, and optionally closes it if CLOSE is passed.
1345+
* Stops adding vertices to a custom shape.
13461346
*
13471347
* The <a href="#/p5/beginShape">beginShape()</a> and `endShape()` functions
13481348
* allow for creating custom shapes in 2D or 3D.

0 commit comments

Comments
 (0)