diff --git a/README.md b/README.md index eafc142..a5748f9 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ color.Magenta("And many others ..") ### RGB colors -If your terminal supports 24-bit colors, you can use RGB color codes +If your terminal supports 24-bit colors, you can use RGB color codes. ```go color.RGB(255, 128, 0).Println("foreground orange") diff --git a/color.go b/color.go index 1b1f034..ee39b40 100644 --- a/color.go +++ b/color.go @@ -99,7 +99,7 @@ const ( FgCyan FgWhite - // used internally for 256 and 24bit coloring + // used internally for 256 and 24-bit coloring foreground ) @@ -126,7 +126,7 @@ const ( BgCyan BgWhite - // used internally for 256 and 24bit coloring + // used internally for 256 and 24-bit coloring background ) @@ -156,12 +156,12 @@ func New(value ...Attribute) *Color { return c } -// RGB returns a newly created foreground 24-bit RGB color. +// RGB returns a new foreground color in 24-bit RGB. func RGB(r, g, b int) *Color { return New(foreground, 2, Attribute(r), Attribute(g), Attribute(b)) } -// BgRGB returns a newly created 24-bit background RGB color. +// BgRGB returns a new background color in 24-bit RGB. func BgRGB(r, g, b int) *Color { return New(background, 2, Attribute(r), Attribute(g), Attribute(b)) }