2016-10-08 08:14:36 +02:00
|
|
|
#pragma once
|
2017-03-04 22:17:42 +01:00
|
|
|
#include <QString>
|
2016-10-08 08:14:36 +02:00
|
|
|
|
2016-05-31 22:55:56 +02:00
|
|
|
#include <utils/ColorRgb.h>
|
|
|
|
#include <utils/ColorRgbw.h>
|
|
|
|
|
2016-10-08 08:14:36 +02:00
|
|
|
namespace RGBW {
|
|
|
|
|
2018-12-31 06:10:25 +01:00
|
|
|
enum WhiteAlgorithm {
|
|
|
|
INVALID,
|
|
|
|
SUBTRACT_MINIMUM,
|
|
|
|
SUB_MIN_WARM_ADJUST,
|
|
|
|
SUB_MIN_COOL_ADJUST,
|
|
|
|
WHITE_OFF
|
|
|
|
};
|
2016-10-08 08:14:36 +02:00
|
|
|
|
2017-03-04 22:17:42 +01:00
|
|
|
WhiteAlgorithm stringToWhiteAlgorithm(QString str);
|
2016-10-08 08:14:36 +02:00
|
|
|
void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, const WhiteAlgorithm algorithm);
|
|
|
|
|
|
|
|
};
|