Improve update input color from curve

No longer changes on x value change