exponential Interpolator
fun exponentialInterpolator(base: Expression, input: Expression, vararg stops: Pair<Expression, Expression>): Expression
fun exponentialInterpolator(base: Double, input: Expression, vararg stops: Pair<Expression, Expression>): Expression
Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The input
may be any numeric expression (e.g., ["get", "population"]
). Stop inputs must be numeric literals in strictly ascending order. The output type must be number
, array<number>
, or color
.
exponentialInterpolator interpolates exponentially between the stops just less than and just greater than the input. base
controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.