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
|
|
|
|
2020-08-08 23:12:43 +02:00
|
|
|
WhiteAlgorithm stringToWhiteAlgorithm(const QString& str);
|
2020-08-08 13:22:37 +02:00
|
|
|
void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, WhiteAlgorithm algorithm);
|
2020-05-25 21:51:11 +02:00
|
|
|
}
|