Skip to content

Commit b606575

Browse files
committed
final typo updates to p5.Color.js
1 parent 15999db commit b606575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/color/p5.Color.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ class Color {
547547
}
548548

549549
/**
550-
* This function extracts the green value from a color object, returns green
551-
* value in the range of 0 to 255 by default. When colorMode() is given to an
550+
* This function extracts the green value from a color object and
551+
* returns it in the range 0–255 by default. When colorMode() is given to an
552552
* RBG value, the green value within the givin range is returned
553553
*/
554554
_getGreen(max=[0, 1]) {
@@ -633,7 +633,7 @@ class Color {
633633
/**
634634
* Brightness obtains the HSB brightness value from either a p5.Color object,
635635
* an array of color components, or a CSS color string.Depending on value,
636-
* when colorMode() is set a HSB value, this function will return the
636+
* wwhen `colorMode()` is set to HSB, this function will return the
637637
* brightness value in the range. By default, this function will return
638638
* the HSB brightness within the range 0 - 100.
639639
*/

0 commit comments

Comments
 (0)