mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-10 14:24:26 +02:00
Updated RgbColor object API (markdown)
@@ -27,6 +27,10 @@ Constructs a RgbColor using Red, Green, and Blue color component values.
|
|||||||
> * g - value of Green component (0 - 255)
|
> * g - value of Green component (0 - 255)
|
||||||
> * b - value of Blue 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)
|
### RgbColor(uint8_t brightness)
|
||||||
Constructs a RgbColor using a single brightness value(0 - 255). This works well for creating gray tone colors.
|
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
|
> * _brightness_ - brightness value where (0) = black, (128) = gray, (255) = white
|
||||||
|
Reference in New Issue
Block a user