(gNegate) {
for(i=0;i<curvePoints.length;i++) {
curvePoints[i][1] = 255 - curvePoints[i][1];
}
It simply subtrackts the values from 255 to get a negated curve. The math to get a curve that corrects a negative file is somewhat more complicated. Simply put it should be flipped (top/bottom and up/down) round the straight curve axis. Any javascript coders out here that know how to do this?
If so we might fork chartrob on github joker-b/ChartThrob.
-k