Skip to main content

Function: fromGradient()

fromGradient(value, bottomValue, topValue, bottomColor, topColor): i32

Interpolate between two colors as value moves from bottomValue to topValue (clamped). Pine color.from_gradient.

Parameters​

value​

f64

bottomValue​

f64

topValue​

f64

bottomColor​

i32

topColor​

i32

Returns​

i32