Skip to content

Commit 15999db

Browse files
committed
typo updates to p5.Color.js
1 parent 00bbbd9 commit 15999db

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/color/p5.Color.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ class Color {
548548

549549
/**
550550
* 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 set to an
552-
* RBG value, the green value within the givin range is returned.
551+
* value in the range of 0 to 255 by default. When colorMode() is given to an
552+
* RBG value, the green value within the givin range is returned
553553
*/
554554
_getGreen(max=[0, 1]) {
555555
if(!Array.isArray(max)){
@@ -632,10 +632,10 @@ class Color {
632632
}
633633
/**
634634
* Brightness obtains the HSB brightness value from either a p5.Color object,
635-
* an array of color components, or a CSS color string. Depending on value,
636-
* when colorMode() is set a HSB value, this function will returns the
637-
* brightness value within the current range. By default, this function will return
638-
* the HSB brightness within the range 0100.
635+
* 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
637+
* brightness value in the range. By default, this function will return
638+
* the HSB brightness within the range 0 - 100.
639639
*/
640640

641641
_getBrightness(max=[0, 100]) {

0 commit comments

Comments
 (0)