Adding more possibilities to the ColorProvider class
This commit is contained in:
@@ -134,10 +134,13 @@ void HSVEqualizer::curveChanged (CurveEditor* ce) {
|
||||
}
|
||||
}
|
||||
|
||||
void HSVEqualizer::colorForValue (double valX, double valY, int callerId, ColorCaller* caller) {
|
||||
void HSVEqualizer::colorForValue (double valX, double valY, enum ColorCaller::ElemType elemType, int callerId, ColorCaller* caller) {
|
||||
|
||||
float r, g, b;
|
||||
|
||||
if (elemType==ColorCaller::CCET_VERTICAL_BAR)
|
||||
valY = 0.5;
|
||||
|
||||
if (callerId == 1) { // Hue = f(Hue)
|
||||
|
||||
float h = float((valY - 0.5) * 2. + valX);
|
||||
|
Reference in New Issue
Block a user