Issue 1858: "Defringe specific colors only" on behalf of J. Desmis

This commit is contained in:
natureh 510
2013-05-12 20:17:01 +02:00
parent 47c48116ac
commit 1bbcd038e9
97 changed files with 361 additions and 174 deletions

View File

@@ -1238,12 +1238,12 @@ void MyFlatCurve::setType (FlatCurveType t) {
setDirty(true);
}
void MyFlatCurve::reset() {
void MyFlatCurve::reset(double identityValue) {
calcDimensions();
switch (curve.type) {
case FCT_MinMaxCPoints :
defaultCurve();
defaultCurve(identityValue);
lit_point = -1;
curveIsDirty = true;
break;
@@ -1256,7 +1256,7 @@ void MyFlatCurve::reset() {
draw();
}
void MyFlatCurve::defaultCurve () {
void MyFlatCurve::defaultCurve (double iVal) {
curve.x.resize(6);
curve.y.resize(6);
@@ -1266,7 +1266,7 @@ void MyFlatCurve::defaultCurve () {
// Point for RGBCMY colors
for (int i=0; i<6; i++) {
curve.x.at(i) = (1./6.)*i;
curve.y.at(i) = 0.5;
curve.y.at(i) = iVal;
curve.leftTangent.at(i) = 0.35;
curve.rightTangent.at(i) = 0.35;
}