mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 04:44:26 +02:00
Updated Rgb48Color object API (markdown)
@@ -32,6 +32,14 @@ Constructs a Rgb48Color using Red, Green, and Blue color component values.
|
|||||||
Constructs a Rgb48Color using a single brightness value(0 - 65535). This works well for creating gray tone colors.
|
Constructs a Rgb48Color using a single brightness value(0 - 65535). This works well for creating gray tone colors.
|
||||||
> * _brightness_ - brightness value where (0) = black, (32767) = gray, (65535) = white
|
> * _brightness_ - brightness value where (0) = black, (32767) = gray, (65535) = white
|
||||||
|
|
||||||
|
### _explicit_ Rgb48Color(RgbwColor color);
|
||||||
|
Construct a Rgbw48Color using RgbwColor, converting 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_ - a RgbwColor object.
|
||||||
|
|
||||||
|
### _explicit_ Rgb48Color(Rgbw64Color color);
|
||||||
|
Construct a Rgbw48Color using Rgbw64Color, 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_ - a Rgbw64Color object.
|
||||||
|
|
||||||
### Rgb48Color(RgbColor color);
|
### Rgb48Color(RgbColor color);
|
||||||
Construct a Rgbw48Color using RgbColor, converting the R,G,B values.
|
Construct a Rgbw48Color using RgbColor, converting the R,G,B values.
|
||||||
> * _color_ - a RgbColor object.
|
> * _color_ - a RgbColor object.
|
||||||
|
Reference in New Issue
Block a user