Adding more possibilities to the ColorProvider class

This commit is contained in:
Hombre
2014-06-14 15:18:25 +02:00
parent 7d981c4a0a
commit 02240ae504
18 changed files with 88 additions and 26 deletions

View File

@@ -662,10 +662,13 @@ bool BlackWhite::curveMode1Changed2_ () {
return false;
}
*/
void BlackWhite::colorForValue (double valX, double valY, int callerId, ColorCaller* caller) {
void BlackWhite::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.5f;
if (callerId == 1) { // Hue = f(Hue)
float h = float((valY - 0.5) * 2. + valX);