Good idea, but that exp() function makes my inner perf-nerd twitch a bit.<p>I&#x27;m personally a fan of pre-generating a fixed set of points that are linearly interpolated and scaled. It has a few advantages:<p>-<i>Extremely</i> cache friendly, can even be cheaper than computing a spline on a lot of platforms since it&#x27;s essentially just a look up table.<p>-Your curve doesn&#x27;t need to fit any specific formula(I.E. you can have a step function as part of it if you want).<p>-You can pull data from design applications to generate the curve allowing non-developers to have control over look-and-feel if you want to get that fancy.