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 {
|
|
|
|
|
2020-06-28 23:05:32 +02:00
|
|
|
enum class WhiteAlgorithm {
|
2018-12-31 06:10:25 +01:00
|
|
|
INVALID,
|
|
|
|
SUBTRACT_MINIMUM,
|
|
|
|
SUB_MIN_WARM_ADJUST,
|
|
|
|
SUB_MIN_COOL_ADJUST,
|
|
|
|
WHITE_OFF
|
|
|
|
};
|
2020-05-25 21:51:11 +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);
|
|
|
|
|
2020-05-25 21:51:11 +02:00
|
|
|
}
|