interpolate

fun interpolate(interpolation: Any, input: Any, stops: List<Any>): Expression

["interpolate", interpolation, input, …stops].

interpolation is typically listOf("linear"), listOf("exponential", base), or listOf("cubic-bezier", x1, y1, x2, y2). GLES evaluates linear, exponential, and cubic-bezier; interpolate-hcl / interpolate-lab serialize only.

Prefer interpolate, interpolateExponential, or interpolateCubicBezier for the common cases.


fun interpolate(input: Any, stops: List<Any>): Expression

Linear ["interpolate", ["linear"], input, …stops]. ColorStop entries expand to value + rgba(...) string. GLES evaluates linear interpolation for color and number paint.