Returns new MAdd gen, producing an exponential curve (with adjustable curvature) between start and end values over num steps. This is the exponential equivalent of line.
remarks
Unless skipFirst is true (default: false), the end value is only reached at num + 1 steps. Unless clampEnd is true (default: false), the curve will NOT stop at end but continue indefinitely if more values are requested from the generator.
The curvature can be controlled via the logarithmic rate param. Recommended range [0.0001 - 10000] (curved -> linear). Default: 0.1
Returns new MAdd gen, producing an exponential curve (with adjustable curvature) between
start
andend
values overnum
steps. This is the exponential equivalent of line.Unless
skipFirst
is true (default: false), theend
value is only reached atnum + 1
steps. UnlessclampEnd
is true (default: false), the curve will NOT stop atend
but continue indefinitely if more values are requested from the generator.The curvature can be controlled via the logarithmic
rate
param. Recommended range [0.0001 - 10000] (curved -> linear). Default: 0.1Also see madd.
curve(-1, 1, 5, 0.1).take(7) // [ // -1, // -0.04228753006664476, // 0.4786567612639258, // 0.7620225554764573, // 0.9161583712747458, // 1.0000000000000002, // target // 1.0456053557111122 // ]