scaleCurve function

Scale curve