MTColorRamp
Reference to a color ramp instance.
Functions
Clone this color ramp.
Returns the bounds of this color ramp.
Returns a data URL of the rendered strip of this color ramp.
Returns the hex color for a given value.
Returns the RGBA color for a relative value between 0 and 1.
Returns the raw color stops backing this ramp.
Indicates if the ramp starts with transparency.
Resample the ramp using a non-linear method.
Reverse the ramp. When clone is false, the current ramp is mutated and returned.
Scale the ramp to a new interval. When clone is false, the current ramp is mutated and returned.
suspend fun setStops(stops: List<MTColorStop>, options: MTColorRampCloneOptions? = null): MTColorRamp
Replace the stops of this ramp. When clone is false, the current ramp is mutated and returned.
Returns a ramp that starts fully transparent.