forked from Makuna/NeoPixelBus
explicit constructor (#415)
This commit is contained in:
@@ -30,6 +30,14 @@ License along with NeoPixel. If not, see
|
|||||||
#include "HslColor.h"
|
#include "HslColor.h"
|
||||||
#include "HsbColor.h"
|
#include "HsbColor.h"
|
||||||
#include "HtmlColor.h"
|
#include "HtmlColor.h"
|
||||||
|
#include "RgbwColor.h"
|
||||||
|
|
||||||
|
RgbColor::RgbColor(const RgbwColor& color) :
|
||||||
|
R(color.R),
|
||||||
|
G(color.G),
|
||||||
|
B(color.B)
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
RgbColor::RgbColor(const Rgb16Color& color)
|
RgbColor::RgbColor(const Rgb16Color& color)
|
||||||
{
|
{
|
||||||
|
@@ -29,6 +29,7 @@ License along with NeoPixel. If not, see
|
|||||||
#include "NeoSettings.h"
|
#include "NeoSettings.h"
|
||||||
#include "RgbColorBase.h"
|
#include "RgbColorBase.h"
|
||||||
|
|
||||||
|
struct RgbwColor;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// RgbColor represents a color object that is represented by Red, Green, Blue
|
// RgbColor represents a color object that is represented by Red, Green, Blue
|
||||||
@@ -57,6 +58,11 @@ struct RgbColor : RgbColorBase
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
// explicitly Construct a RgbColor using RgbwColor
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
explicit RgbColor(const RgbwColor& color);
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Construct a RgbColor using Rgb16Color
|
// Construct a RgbColor using Rgb16Color
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user