Updated RgbColor object API (markdown)

Michael Miller
2023-04-20 10:35:28 -07:00
parent 1e5ae7cef2
commit 12ea4b3c25

@@ -27,17 +27,21 @@ Constructs a RgbColor using Red, Green, and Blue color component values.
> * g - value of Green component (0 - 255)
> * b - value of Blue component (0 - 255)
### _explicit_ RgbColor(RgbwColor color);
Construct a RgbColor using RgbwColor, copying the R,G,B values and ignoring the W value. Due to the loss of information of the W value, this constructor is marked explicit so it will not automatically be used for conversion.
> * _color_ - an RgbwColor object
### RgbColor(uint8_t brightness)
Constructs a RgbColor using a single brightness value(0 - 255). This works well for creating gray tone colors.
> * _brightness_ - brightness value where (0) = black, (128) = gray, (255) = white
### RgbColor(HtmlColor color);
Construct a RgbColor using HtmlColor, converting the Html single value to Rgb component values
> * _color_ - an HtmlColor object
> * _color_ - an HtmlColor object
### RgbColor(HslColor color);
Construct a RgbColor using HslColor, converting the Hsl to Rgb
> * _color_ - an HslColor object
> * _color_ - an HslColor object
### RgbColor(HsbColor color);
Construct a RgbColor using HsbColor, converting the Hsb to Rgb