Implemented warm white (and added cool white) RGBW white algorithms

This commit is contained in:
penfold42
2018-12-31 16:10:25 +11:00
parent b77e7c4acd
commit bceb255b7a
2 changed files with 33 additions and 2 deletions

View File

@@ -6,7 +6,13 @@
namespace RGBW {
enum WhiteAlgorithm { INVALID, SUBTRACT_MINIMUM, SUB_MIN_WARM_ADJUST, WHITE_OFF };
enum WhiteAlgorithm {
INVALID,
SUBTRACT_MINIMUM,
SUB_MIN_WARM_ADJUST,
SUB_MIN_COOL_ADJUST,
WHITE_OFF
};
WhiteAlgorithm stringToWhiteAlgorithm(QString str);
void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, const WhiteAlgorithm algorithm);