mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Color Adjustment 2.0 (#351)
* Rename test to test123 * Delete test123 * New color Ajustment Trilinear interpolation between the 8 corners of the color cube (black, red, green, blue, cyan, magenta, yellow, white) * Renaming * overloading getadjustmentX() * Renaming * Additional renaming * Added more RgbChannel * Added more colors to channelAdjustment * Added additional colors * Added additional colors * Added additional colors * Added additional color adjustments * Update MultiColorAdjustment.cpp * Fixed black adjustment * Color config in array form
This commit is contained in:
@@ -58,17 +58,17 @@ void RgbChannelAdjustment::setAdjustmentB(uint8_t adjustB)
|
||||
setAdjustment(_adjust[RED], _adjust[GREEN], adjustB);
|
||||
}
|
||||
|
||||
uint8_t RgbChannelAdjustment::adjustmentR(uint8_t inputR) const
|
||||
uint8_t RgbChannelAdjustment::getAdjustmentR(uint8_t inputR) const
|
||||
{
|
||||
return _mapping[RED][inputR];
|
||||
}
|
||||
|
||||
uint8_t RgbChannelAdjustment::adjustmentG(uint8_t inputG) const
|
||||
uint8_t RgbChannelAdjustment::getAdjustmentG(uint8_t inputG) const
|
||||
{
|
||||
return _mapping[GREEN][inputG];
|
||||
}
|
||||
|
||||
uint8_t RgbChannelAdjustment::adjustmentB(uint8_t inputB) const
|
||||
uint8_t RgbChannelAdjustment::getAdjustmentB(uint8_t inputB) const
|
||||
{
|
||||
return _mapping[BLUE][inputB];
|
||||
}
|
||||
|
Reference in New Issue
Block a user