mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 12:54:26 +02:00
Updated RgbColor object API (markdown)
@@ -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
|
||||
|
Reference in New Issue
Block a user